This screenshot was taken in landscape mode with the standard clock app using screensaver mode. If I turn off the screen via the power button then the display returns in portrait mode only, but if I let the screen time out or manually activate the screensaver mode via the Display settings then it allows screen rotation.