Added function to check if user device is mobile