Check if a device is mobile
bool isMobileDevice(Device? device) { if (device == null) return false; return device.type == 'mobile' || device.type == 'tablet' || device.type == 'wearable'; }