Version: 2017.3

Screen.autorotateToPortrait

Switch to Manual
public static bool autorotateToPortrait ;

Description

Allow auto-rotation to portrait?

This setting is taken into account when orientation is set to AutoRotation.