Keep screen width instead of height for resolutions

Hello
I am new to Unity, but so far I ve managed to google solutions to my problems until this one.

When changing resolution in 2D project or let say aspect ratio, unity will keep my screen height and scale my width.

But I want it vice versa
Here are some images:

At the sedond image,there is cropped a part of path in grey area
HoW do I make it to cropp from top of the screen and keep the same width"?
THanks

The result in game’s window and in the build its not the same, try to build to see if the problem persist.
Also you can look at: Unity - Scripting API: Screen.SetResolution
Unity - Scripting API: Screen.height
Unity - Scripting API: Screen.width

Good day,
Raph