# dojox/mobile/deviceTheme Override Theme

**URL:** <https://discourse.dojo.io/t/dojox-mobile-devicetheme-override-theme/182>\
**Category:** Uncategorized\
**Created:** [April 25, 2018, 10:34pm UTC](https://discourse.dojo.io/t/dojox-mobile-devicetheme-override-theme/182 "2018-04-25T22:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsexton](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gsexton](https://discourse.dojo.io/u/gsexton)\
**Post date:** [April 25, 2018, 10:34pm UTC](https://discourse.dojo.io/t/dojox-mobile-devicetheme-override-theme/182/1 "2018-04-25T22:34:05Z")

</div>

I’ve got a web page that’s using dojox/mobile/deviceTheme and one user would like to override the device theming.

I’ve looked through the docs, and I see the recommended way of either specifying ?theme= on the URL for the deviceTheme.js file, or by setting a data-dojo-config attribute on the script tag including the deviceTheme.js file.

The problem is that right now, I’m loading dojox/mobile/deviceTheme in a require statement. How can I accomplish overriding the theme when deviceTheme.js is loaded via require()?

---

<div class="post-metadata">

**Author:** ![gsexton](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gsexton](https://discourse.dojo.io/u/gsexton)\
**Post date:** [April 25, 2018, 11:08pm UTC](https://discourse.dojo.io/t/dojox-mobile-devicetheme-override-theme/182/2 "2018-04-25T23:08:16Z")

</div>

Never mind. I found that if I put the mblUserAgent property in the data-dojo-config for dojo.js, that works as well.
