Instead of media queries, you can also use platform to detect if you are on a desktop device.
import { Platform } from 'ionic-angular';
@Component({...})
export MyPage {
constructor(public plt: Platform) {
if (this.plt.is('core')) {
// This will only print when on a desktop device
console.log('I am a desktop device!');
}
}
}