This was my last resort but it actually made it work for me. Just one note: “@latest” threw me an error, but without it was fine too, and now everything works. So really simply just:
ionic cordova plugin remove cordova-plugin-screen-orientation.
ionic cordova plugin add cordova-plugin-screen-orientation