Lock your iPhone screen orientation.

Double-click the Home button to bring up the multitasking interface,

Swipe from left to right.

Then tap the portrait orientation lock once to turn it on and again to turn it off.