Home > widget-integration > PositionService > isMobileDevice

PositionService.isMobileDevice() method

Check if current device is mobile or tablet (≤ 991 px).

Matches the legacy isMobile(isTabletPortraitMax) threshold so that tablets are positioned with the mobile ISW container, consistent with the full-width style determination in InstantSearchSelectors.

Signature:

protected isMobileDevice(): boolean;

Returns:

boolean

True if device width is below the tablet-portrait-max breakpoint