Unity2D - Camera in exported game is zoomed out compared to unity game preview HELP PLEASE!

Ok so I’m making a 2d game, when designing the UI of the main menu or the HUD in levels everything looks fine in the game preview but when I test the game on an actual device the camera is zoomed out and the HUD in levels are out of place. Please help me with my problem I’m new to Unity. If this question is answered somewhere else please redirect me to it. I will accept any help I can get.
Here are some screenshots of what happens:

How it looks in Unity:

How it looks on the exported game:

That blue space around is part of the screenshot. I set the background color of the MainCamera to blue. I shouldn’t be seeing it since i focused my camera on the UI in screenshot one.

There is a little box underneath your game view that says “Free Aspect”. This is your problem I would wager. This needs to be changed to the target size of your deployed build. So for example, you can make a new aspect of 16:9 and then set your game view to this and it will look how it will look on a 16:9 display.

I’d also encourage you to learn about the canvas scaler component: Unity Connect