Turn on auto-rotate only for certain apps

I keep auto-rotate off because the screen flipping sideways when I lie down with the phone gets old fast. The trouble is that video apps are the one place I want it, and toggling it from the quick settings every time I open YouTube is the kind of small chore Rulomi exists to remove. This routine turns auto-rotate on when the app you name comes to the front and sets it back to whatever it was when you leave.
"When I open YouTube turn on auto-rotate and put it back when I leave"
The first time you enable it, Rulomi asks for two permissions. App usage access is how it knows which app is in the foreground, and Modify system settings is what lets it change the rotation setting at all. Both are requested for this routine when you turn it on, not at install. You can swap YouTube for any other app, and you can add a brightness change to the same sentence if you also want the screen brighter while you watch. Both settings are restored together when you leave the app.
The recipe and its variations are on Rulomi's recipe page.
About the Author
CraftedPxl is a digital playground exploring the intersection of design, code, and photography.