How to make UI scale equally to camera?

When I make a UI, i put some buttons in the corner of the canvas as such. The game scale is set to 16:9 landscape.

However, when I build the game for my phone, the buttons are in the middle of the screen.

How can I make the buttons go to the corner of the screen like in the editor?

Fixed it! Simply, when you make a canvas there is a component called canvas scaler. Set the scale mode to “Scale with Screen Size” and set a reference res. That’s it!