# Resize function for different breakpoints

**URL:** <https://community.elfsight.com/t/resize-function-for-different-breakpoints/140370>\
**Category:** Popup\
**Tags:** Gathering-Feedback\
**Created:** [October 7, 2025, 4:01pm UTC](https://community.elfsight.com/t/resize-function-for-different-breakpoints/140370 "2025-10-07T16:01:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrahamBedbrook](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@GrahamBedbrook](https://community.elfsight.com/u/GrahamBedbrook)\
**Post date:** [October 7, 2025, 4:01pm UTC](https://community.elfsight.com/t/resize-function-for-different-breakpoints/140370/1 "2025-10-07T16:01:57Z")

</div>

It would be great if you could change the width of the pop up for each breakpoint. At the moment it is the same on the desktop, tablet and mobile.

---

<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:** [October 7, 2025, 4:43pm UTC](https://community.elfsight.com/t/resize-function-for-different-breakpoints/140370/2 "2025-10-07T16:43:13Z")

</div>

Hi there, @GrahamBedbrook 👋

Nice suggestion! We’ll try to consider it as an option in the settings, especially if more users upvote this idea 🙂

As for now, you can change the width of the widget based on the device using this code in the Custom CSS field on the Settings tab of your widget’s settings:

**Mobile devices**

```auto
@media (max-width: 500px) {
[class*="WidgetBackground__Container-sc"] {
  width: 80% !important;
}
}

```

  

**Tablets**

```auto
@media (min-width: 501px) and (max-width: 1024px) {
    [class*="WidgetBackground__Container-sc"] {
        width: 65% !important;
    }
}

```
