Found this app on F-Droid. You can choose apps to enable auto rotate in. It’ll do it automatically.