When making a game for mobile, how do you set the viewport and landscape/portrait mode?

I have worked on mobile games in Android Studio with LibGDX and there I had to create virtual viewports to match the phone/tablet screen size/ratio and also configure whether the game will be in portrait or landscape mode. How would I do this in Unity?

Look at Screen.width and Screen.height?

(I’m not entirely sure what you’re asking for, but that might be the answer.)