Detect if a user is on a mobile device based on window size and then platform