iPhone shortcut to control orientation lock when using YouTube

Here is a video which demonstrates how to change orientation lock when running YouTube.   This can be used with any app like photos, etc.