isMobile

isMobile is a boolean from pota/use/browser, true when navigator.userAgent matches mobile, iphone, ipod, ios, ipad, or android. It is evaluated once at module load — a coarse UA guard, not a live signal.

Examples

Branch on mobile

Reads the boolean once and runs a mobile-only branch behind the guard.

import { isMobile } from 'pota/use/browser'

if (isMobile) {
	/* ... */
}