Although cross platform development for mobile devices is so good. There isn\'t a simple option to disable auto-rotate or lock into one orientation i.e. portrait or landscape.>
For iOS, edit the PhoneGap.plist file (e.g. in Xcode). Make sure only portrait is set and uncheck autorotate.
PhoneGap.plist
On Android, you need to edit AndroidManifest.xml. Add android:screenOrientation="portrait" in the activity.
AndroidManifest.xml
android:screenOrientation="portrait"