# GUI on Mobile Devices

**URL:** <https://forum.babylonjs.com/t/gui-on-mobile-devices/30152>\
**Category:** Questions\
**Created:** [May 8, 2022, 7:42am UTC](https://forum.babylonjs.com/t/gui-on-mobile-devices/30152 "2022-05-08T07:42:41Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DarraghBurke](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/darraghburke/32/10621_2.png) [@DarraghBurke](https://forum.babylonjs.com/u/DarraghBurke)\
**Post date:** [May 19, 2022, 8:30pm UTC](https://forum.babylonjs.com/t/gui-on-mobile-devices/30152/6 "2022-05-19T20:30:44Z")

</div>

Are you listening for “resize” events and calling engine.resize()? The playground has the following code:

```javascript
window.addEventListener("resize", () => {
            if (!this._engine) {
                return;
            }

            this._engine.resize();
        });

```

You may need something similar.

---

_[View the full topic](https://forum.babylonjs.com/t/gui-on-mobile-devices/30152)._
