# Change size of the chat icon on mobile

**URL:** <https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501>\
**Category:** AI Chatbot\
**Created:** [March 21, 2025, 1:54pm UTC](https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501 "2025-03-21T13:54:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 21, 2025, 1:54pm UTC](https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501/1 "2025-03-21T13:54:00Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your [AI Chatbot](https://elfsight.com/ai-chatbot-widget/) widget’s settings:

```auto
@media(max-width: 500px) {
  .global-styles, [class^='FloatingButton__FloatingButtonContainer-sc'] {
    transform: scale(0.8)
  }
}

```

---

<div class="post-metadata">

**Author:** ![Fabio](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Fabio](https://community.elfsight.com/u/Fabio)\
**Post date:** [April 2, 2026, 2:52pm UTC](https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501/2 "2026-04-02T14:52:50Z")

</div>

Hello Max,

How can I make the icons on my desktop smaller?

Thanks

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 2, 2026, 3:12pm UTC](https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501/3 "2026-04-02T15:12:48Z")

</div>

Hi there, @Fabio 👋

You just need to replace the `max-width` with `min-width` in the code:

```auto
@media(min-width: 500px) {
  .global-styles, [class^='FloatingButton__FloatingButtonContainer-sc'] {
    transform: scale(0.8)
  }
}

```

---

<div class="post-metadata">

**Author:** ![Fabio](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Fabio](https://community.elfsight.com/u/Fabio)\
**Post date:** [April 2, 2026, 3:46pm UTC](https://community.elfsight.com/t/change-size-of-the-chat-icon-on-mobile/108501/4 "2026-04-02T15:46:46Z")

</div>

Hi Max,

It was simple

Thanks 🙂
