Dynamically Change Screen Orientation on Android

In case anyone is looking for a solution for this still you can call

UBlueprintPlatformLibrary::SetAllowedDeviceOrientation(EScreenOrientation::LandscapeSensor);

to set the orientation