There is
sap.ui.Device.orientation.attachHandler(function(oEvent) {
//oEvent.landscape;
},...);
but that will involve another jquery/DOM "trick"
I personally feel like sap.ui.ux3.OverlayContainer is not the best option for mobile. especially with flexbox. that is more of a desktop "thing",