autodetect_theme without cookie

Now the bundle can recognize the devices without the use of a cookie.