If you take a photo in a different orientation to how you’re holding the phone, the picture will seem to constantly rotate from Landscape to Portrait.

To stop this from happening hold the screen with a thumb as you rotate the iPhone. This will prevent the photo from rotating, as long as you hold the finger.