IPhone XR screen won't rotate, even when orientation is unlocked. Turn phone sideways and nothing happens on YouTube, messages, etc?

IPhone XR screen won't rotate, even when orientation is unlocked. Turn phone sideways and nothing happens on YouTube, messages, etc?

I solved my own problem. Nothing else worked that I found on google. Honestly, find something relatively hard like the arm of a couch, and bang your phone on it. My orientation immediately worked. Restarting it didn't work, changing settings didn't work. Whatever sensor detects the phones orientation was just out of whack. So there you go, hit your phone until it works lol

You used the High Impact Technology Improvement Technique ---
known by the acronym "Hit It".

Try restarting the phone