Bring up the Control Center and tap the screen rotation lock to prevent your iPhone from turning. If you want the screen to automatically rotate, tap it one more.