# Table of Contents - how to set a different fs-toc-offsettop from desktop to mobile

**URL:** <https://forum.finsweet.com/t/table-of-contents-how-to-set-a-different-fs-toc-offsettop-from-desktop-to-mobile/1747>\
**Category:** Attributes\
**Created:** [August 7, 2023, 11:19am UTC](https://forum.finsweet.com/t/table-of-contents-how-to-set-a-different-fs-toc-offsettop-from-desktop-to-mobile/1747 "2023-08-07T11:19:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthur.xuan.vu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/arthur.xuan.vu/32/864_2.png) [@arthur.xuan.vu](https://forum.finsweet.com/u/arthur.xuan.vu)\
**Post date:** [August 7, 2023, 11:19am UTC](https://forum.finsweet.com/t/table-of-contents-how-to-set-a-different-fs-toc-offsettop-from-desktop-to-mobile/1747/1 "2023-08-07T11:19:01Z")

</div>

Hi Finsweet support team, here’s my need:

- [CleanShot 2023-08-07 at 13.17.18](https://share.cleanshot.com/ysTn6rp73jCvgh375q2M)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [August 7, 2023, 5:22pm UTC](https://forum.finsweet.com/t/table-of-contents-how-to-set-a-different-fs-toc-offsettop-from-desktop-to-mobile/1747/2 "2023-08-07T17:22:33Z")

</div>

Hey @arthur.xuan.vu! I am afraid there is no native solution for this but it seems you have already figured out a way to modify the values with JS which is great!

You can try destroying and reinitializing the attribute with these lines

```auto
window.fsAttributes.toc.destroy();
window.fsAttributes.toc.init();

```

Let me know if this fixes your issue!
