Home > widget-integration > InstantSearchSelectors > isMobileDevice
InstantSearchSelectors.isMobileDevice() method
Check if current device is mobile or tablet (≤ 991 px).
Matches the legacy isMobile(isTabletPortraitMax) threshold used by the old ISW code, which treats tablets up to 991 px as "mobile" for layout decisions (full-width style, container selector, etc.).
Signature:
protected isMobileDevice(): boolean;
Returns:
boolean
True if device width is below the tablet-portrait-max breakpoint