You can configure the screen orientation on Android devices using Hexnode. Please navigate to Policies-> Android-> Restrictions-> Allow Device Functionality and click on the drop-down list next to the option ‘Screen Orientation’. You will have the following options to choose from: User can choose/Auto-rotate/Portrait/Left/Right/Invert. Associate targets and save the policy.
Please note that the feature is supported only on Standard Android, Samsung Knox, LG GATE, Kyocera business phones and devices enrolled in Android Enterprise as Device Owner.