Gets what kind of device is being used to view the page.
Note: This property only checks the site visitor's device, and not which Editor X breakpoint they are using.
formFactor property gets one of:
"Desktop": When viewed in a desktop browser.
"Mobile": When viewed in a mobile browser.
"Tablet": When viewed in a tablet browser.
Was this helpful?
Get a device's form factor
1import wixWindowFrontend from 'wix-window-frontend';23// ...45let formFactor = wixWindowFrontend.formFactor; // "Mobile"