if you rotate the device while using some features, the interface will automatically rotate as well. To prevent the interface from rotating, open the notifications panel and select Auto-rotate Screen,

 

Then switch it to "OFF".  If auto rotate is deactivated, to activate simply switch from "OFF" to "ON".