Fix scrolling and resizing issues on mobile devices