Simple device type detection (phone, tablet, desktop) based on the user agent string