The iPhone orientation lock lacks context awareness. Opening YouTube or Netflix won’t disable the lock, nor will opening a news-reading app enable it. Thankfully, there’s a Shortcuts automation to automatically toggle the orientation lock when using certain apps.