Mobile adapt and rotation build fix