Camera View Frame Adjustment Question

We are having issues centering the view frame using iPhone X.  We are seeing a X-Y shift that requires manual pixel adjustment to correct the misalignment overlap.  Has any one experienced this and how did you solve it to work for all iPhone versions?
Camera View Frame Adjustment Question
 
 
Q