Initialization of the window on mobile or desktop should be different. Fixing the issue.