MZ Cordova: How to lock to landscape orientation on Android?

So I successfully deployed my MZ game to android using Apache Cordova, but my game always comes out in portrait mode. How can I get it to start in landscape mode?

I installed the screen orientation plugin:
https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-screen-orientation/index.html

And tried editing my index.html like this guy said:


But it doesn't seem to work. Can someone help? Thanks!
Well, after hours of trial and error, it seems I found the solution myself. Instead of using a plug-in, just add "<preference name="orientation" value="landscape" />" to the config.xml file.

Oh boy that took a long time.

Original thread: https://forums.rpgmakerweb.com/threads/mz-cordova-how-to-lock-to-landscape-orientation-on-android.160645/