Lightweight mobile detection