Add mobile detection function, adjust padding if mobile.