# Force mobile view

**URL:** <https://community.elfsight.com/t/force-mobile-view/137956>\
**Category:** General Questions\
**Tags:** store-locator\
**Created:** [August 14, 2025, 1:37pm UTC](https://community.elfsight.com/t/force-mobile-view/137956 "2025-08-14T13:37:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasper\_Skov\_Jensen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/kasper_skov_jensen/32/22504_2.png) [@Kasper\_Skov\_Jensen](https://community.elfsight.com/u/Kasper_Skov_Jensen)\
**Post date:** [August 14, 2025, 1:37pm UTC](https://community.elfsight.com/t/force-mobile-view/137956/1 "2025-08-14T13:37:03Z")

</div>

Hi

How do I force my store locator widget to always show in the mobile view? 🙂

---

<div class="post-metadata">

**Author:** ![Irene](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/irene/32/35338_2.png) [@Irene](https://community.elfsight.com/u/Irene)\
**Post date:** [August 14, 2025, 2:41pm UTC](https://community.elfsight.com/t/force-mobile-view/137956/3 "2025-08-14T14:41:39Z")

</div>

Hi there, @Kasper_Skov_Jensen 👋

Please try this CSS code:

```auto
.global-styles,
[class*="widget__Container-sc"] {
    width: 600px !important;
}

```

You can make the width less by changing the pixel amount 🙌

Does this work for you?

---

<div class="post-metadata">

**Author:** ![Kasper\_Skov\_Jensen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/kasper_skov_jensen/32/22504_2.png) [@Kasper\_Skov\_Jensen](https://community.elfsight.com/u/Kasper_Skov_Jensen)\
**Post date:** [August 14, 2025, 3:20pm UTC](https://community.elfsight.com/t/force-mobile-view/137956/4 "2025-08-14T15:20:56Z")

</div>

Hi @Irene

I’m still seeing a bit of the map.

 ![Skærmbillede 2025-08-14 171925](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/9/29522e2466ebf509471765926f838bfd66b16443.png)

I would like to only have the list (like it is on mobile)

---

<div class="post-metadata">

**Author:** ![Irene](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/irene/32/35338_2.png) [@Irene](https://community.elfsight.com/u/Irene)\
**Post date:** [August 15, 2025, 10:30am UTC](https://community.elfsight.com/t/force-mobile-view/137956/5 "2025-08-15T10:30:24Z")

</div>

I see. Let’s try it with another width value:

```auto
.global-styles,
[class*="widget__Container-sc"] {
    width: 480px !important;
}

```

Does it look good for you now? ☺

---

<div class="post-metadata">

**Author:** ![Kasper\_Skov\_Jensen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/kasper_skov_jensen/32/22504_2.png) [@Kasper\_Skov\_Jensen](https://community.elfsight.com/u/Kasper_Skov_Jensen)\
**Post date:** [August 15, 2025, 10:40am UTC](https://community.elfsight.com/t/force-mobile-view/137956/6 "2025-08-15T10:40:46Z")

</div>

Hmmm… same issue.

Another fix is to get the pop op to open on top of the widget in stead of on top of the page

---

<div class="post-metadata">

**Author:** ![Irene](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/irene/32/35338_2.png) [@Irene](https://community.elfsight.com/u/Irene)\
**Post date:** [August 15, 2025, 10:42am UTC](https://community.elfsight.com/t/force-mobile-view/137956/7 "2025-08-15T10:42:14Z")

</div>

Oh, so sorry for this! Seems to have worked good on my end 🤔

Could you please send me a direct link to the webpage with the widget? The devs will take a look for you 🧑‍💻

---

<div class="post-metadata">

**Author:** ![Kasper\_Skov\_Jensen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/kasper_skov_jensen/32/22504_2.png) [@Kasper\_Skov\_Jensen](https://community.elfsight.com/u/Kasper_Skov_Jensen)\
**Post date:** [August 15, 2025, 11:39am UTC](https://community.elfsight.com/t/force-mobile-view/137956/8 "2025-08-15T11:39:11Z")

</div>

> **[Derfor skal du komme til Åbent Hospital](https://www.bt.dk/performance/derfor-skal-du-komme-til-aabent-hospital)**
>
> Læs mere her.

---

<div class="post-metadata">

**Author:** ![Irene](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/irene/32/35338_2.png) [@Irene](https://community.elfsight.com/u/Irene)\
**Post date:** [August 15, 2025, 2:07pm UTC](https://community.elfsight.com/t/force-mobile-view/137956/9 "2025-08-15T14:07:28Z")

</div>

Thanks!

I noticed that the code I sent was applied at the **Custom JS** section of the widget instead of the **Custom CSS** on the **Style** tab. I moved the code there and it worked 🎉

Could you please check it one more time? 🙏

---

<div class="post-metadata">

**Author:** ![Kasper\_Skov\_Jensen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/kasper_skov_jensen/32/22504_2.png) [@Kasper\_Skov\_Jensen](https://community.elfsight.com/u/Kasper_Skov_Jensen)\
**Post date:** [August 15, 2025, 6:48pm UTC](https://community.elfsight.com/t/force-mobile-view/137956/10 "2025-08-15T18:48:02Z")

</div>

My bad!

Thank you so much 🙂

I still think it would be a usable setting to have the pop up showing on the widget instead of at the top of the page.

---

<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:** [August 19, 2025, 10:19am UTC](https://community.elfsight.com/t/force-mobile-view/137956/11 "2025-08-19T10:19:08Z")

</div>

Hi there, @Kasper_Skov_Jensen 👋

I’ve checked your widget and see that the popup covers the whole page and appears at the top. To display it at the center and reduce it, please try to use the CSS code below:

```auto
[class*="layout-background__StyledWidgetBackground-sc"],
[class*="location-card__Container-sc"],
[class*="location-card-popup__ScrollableWrapper-sc"],
[class*="location-card-popup__StyledPopup-sc"] {
  height: auto !important;
  min-height: auto;
}

[class*="Popup__PopupInner-sc"] {
  align-items: center;
  justify-content: center;
}

[class*="location-card-popup__StyledPopup-sc"] {
  max-width: 480px;
}

```
