Implement @botimer suggested fixes for mobile devices.