Coordinate y 0 isn't good

the y coordinates in 0 do not correspond to the edge of the screen on the companion, it's the same with the other edge (y) of the screen

(xiaomi redmi note 11)

This tutorial might help you solve your issue Creating Animated Apps