In most applications, the display rotates automatically between portrait and landscape modes based on the orientation of the device.
Open Settings
.
Select General > Sensor settings > Turning control and whether you want the display to rotate automatically.
To ensure that the automatic display rotation works, hold the device in an upright position.
Automatic rotation does not work if you change the display rotation setting manually in an application. When you exit the application, automatic rotation is activated again.