Pointer re-center

I am using an BLE HID mouse, and I have an option to recenter the mouse according to screen resolution that I get from an iPhone.

I have 2 issues regarding this post:

  1. Getting the screen resolution of an iPhone 11 sends back the resolution of an iPhone 11 Pro and vise versa.
  2. To re-center the pointer, I send an HID movement to the iPhone, first to the corner (doesn't matter which one), second to center which is just the resolution divided by 2 on both width and height. Not consistent, but the pointer doesn't always go to the center.

My questions are: Why is the resolution sends differently on these devices? Is there a correct way to center the pointer using HID movement commands?