As to disabling the rotation, you can consider using the Screen Orientation plugin. It allows you to dynamically lock or unlock orientation. To add it to your project, you can perform the following steps:
Right click on your project -> Manage packages -> Plugins Marketplace -> Find the plugin and click install.