Changing Camera Zoom based on how big the screen is

I have this problem where if I change the screen size (switch from desktop to mobile) the width of the camera gets larger. In other words the camera shows more than it supposed to. I don’t really care about the height of the camera so the camera can be smaller in the height but the width should be the same size on desktop mobile or any other platform.

Thank you in advance!

Ps. Maybe change the zoom of the camera accordingly to screen size?

Try changing this setting, see if you like any of them better:

If not, yes, you can change the zoom depending on ScreenWidth().

Thank You that actually worked. (Btw. I am dumb I thought that did the opposite, so fit to width
would do for height and the other way around)