Hi I apply these conditions at startup. And after that, I do the scaling and positioning.
For Android (tablet 1280*800 = 1.6, Fone HD 1280*720 = 1.77)
+ System: PlatformInfo.CanvasCssWidth÷PlatformInfo.CanvasCssHeight ≤ 1.77
For iOS (iPhone5.5 9/16= 0.56, iPhone6.5 9/19.5= 0.46, iPad 3/4 or 7/10= 0.75 or 0.7)
+ System: PlatformInfo.CanvasDeviceHeight÷PlatformInfo.CanvasDeviceWidth < 0.5
+ System: PlatformInfo.CanvasDeviceHeight÷PlatformInfo.CanvasDeviceWidth ≥ 0.7
--For Android and for iPhone I did it at different times, that's why I use different initial parameters.