My game doesn't display correctly on different Android phone sizes

So I had noticed that my game’s zoom and UI messes up on different Android devices.

Here’s what the game is supposed to look like (running on an emulated google pixel)

Here’s what the game looks like on a friend’s Samsung Galaxy:

Here’s what the game looks on an emulated QVGA (ADP2):

Why is this happening? How can I stop the phones from incorrectly zooming or not rendering the UI at all?

P.S. I added the images as attached files below if the imgur links don’t work:



Hey, the offset that you’re getting is most likely a result of incorrect UI elements setup (anchor point values, pivot). I can recommend playing around with it in editor, by changing the canvas UI scale mode to “Scale with screen size” and then resizing the Game view in editor to see how the positions change. Also, this documentation might help you to better grasp the UI concepts that are used in the editor:

Thank you! Readjusting the placement of the UI alongside changing the UI Overlay mode to be based on camera position fixed my problem.