Canvas and resolution scaling of buttons

Hi! I’m doing a project for school with a basic layout of buttons and different scenes. However.

The unity game view shows the buttons and the backgrounds in the correct place, but when I build and run the game, all the buttons are messed up and in the wrong place.

I’m also wondering what will happen if the teacher’s screen size is different and how the buttons won’t scale accordingly with the black bars, and will end up hanging off screen.

What settings can I change in my Canvas and/or camera to make this not an issue?

What you can do is change the render mode to screen space camera like this and put the camera in the camera variable. example