This question is very usual, to get solve this issue by using the browser property user agent to check whether the device type.