Screen orientation

Pls help me with changing the screen orientation. Editor shows only landscape orientation; Couldn’t change it to Portrait mode. Can’t find orientation option in Player settings.
Tried through coding but still shows landscape.

Screen.orientation = ScreenOrientation.Portrait;

Setting this works only on a device that supports it (mostly mobile devices)
in the editor you can set the resolution to what every you want via the menus on the top left of the game view.