# Remove chat widget for mobile

**URL:** <https://community.hubspot.com/t/remove-chat-widget-for-mobile/68919>\
**Category:** APIs & Integrations\
**Created:** [November 9, 2022, 3:18pm UTC](https://community.hubspot.com/t/remove-chat-widget-for-mobile/68919 "2022-11-09T15:18:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EMaturana](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@EMaturana](https://community.hubspot.com/u/EMaturana)\
**Post date:** [November 9, 2022, 3:18pm UTC](https://community.hubspot.com/t/remove-chat-widget-for-mobile/68919/1 "2022-11-09T15:18:25Z")

</div>

We are having problems in mobile version with the chat widget because it’s covering our app menus.

We can hide this widget, customizing CSS classes and applying the widget the property “display: none”.

But the problem comes when we trigger the chat, we use it and the moment we close chat window this widget comes again, forgetting the custom property “display:none” we had added.

Has anyone any solution for controling the chat window “onclose” event? How can we reffer to it from our javascript code?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 9, 2022, 9:42pm UTC](https://community.hubspot.com/t/remove-chat-widget-for-mobile/68919/2 "2022-11-09T21:42:23Z")

</div>

Hi, @EMaturana 👋 Thanks for reaching out. Hey, @Anton @Teun, do you have any thoughts on how @EMaturana might approach this project?

Thank you! — Jaycee
