Platform Detection     

Helpers are built-in to detect the Platform (and its capabilities) in which the code is running:

import { Platform } from 'quasar'
PropertyTypeMeaning
Platform.is.mobilebooleanIs the code running on a mobile device?
Platform.is.cordovabooleanIs the code running within Cordova?
Platform.is.desktopbooleanIs the code running on a desktop browser?
Platform.is.chromeExtbooleanIs the code running is a Chrome extension environment?
Platform.has.touchbooleanIs the code running on a touch capable screen?
Platform.within.iframebooleanIs the App running within an IFRAME?

NOTE
Running on mobile means you can have this code running on a mobile device (phone or tablet) but with a browser, not within a Cordova wrapper.

Other Platform.is specific properties:
android, blackberry, cros, ios, ipad, iphone, ipod, kindle, linux, mac, playbook, silk, chrome, opera, safari, win (Windows), winphone (Windows Phone) and moreā€¦

Example when running Chrome on a Linux desktop machine:

// Describing Platform.is
{
chrome: true,
desktop: true,
linux: true,
name: "chrome",
platform: "linux",
version: "47.0.2526.80",
versionNumber: 47,
webkit: true
}

NOTE
When trying to show DOM elements only on a platform you can skip using Javascript and make use of Quasar CSS classes (which is more efficient). Read about on CSS > Visibility documentation page.