Problem with canvas and UI elements

Hi,
I’m making a menu with a canvas and several panels, buttons and texts (for android). When I test the game on the editor the sizes are perfect. But when I test on my phone everything is too large.

In the UI Scale mode I have “Constant Physical Size”, in Render Mode I have “Screen Space - Overlay”.

why this happens? How can I solve it?

Thanks

The problem is the “Constant Physical Size”. Currently is a useless mode because there is no DPI simulation in Unity yet (is in the roadmap so it will be). So what you see in Unity is not what you see on the device.

Unless you use an asset like xARM which is a DPI simulator so you can see in Unity exacly the same than you see on the device:

If you don’t want to buy anything you can setup the canvas to “Scale with screen size”. You will not have control of the real phisical size of the elements but scaling all to the screen at least solves the problem and your UI will look fine and will look exactly like you see it in Unity.