// Function to check if the device is mobile