# Change share icon by OS

**URL:** https://meta.discourse.org/t/change-share-icon-by-os/326617
**Category:** Theme component
**Created:** [September 16, 2024, 5:25am UTC](https://meta.discourse.org/t/change-share-icon-by-os/326617 "2024-09-16T05:25:51Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 2, 2025, 10:20pm UTC](https://meta.discourse.org/t/change-share-icon-by-os/326617/4 "2025-11-02T22:20:56Z")

</div>

I got a deprecation notice for this great theme component in the developer console of the browser:

> [THEME 57 ‘Change share icon by OS’] Deprecation notice: Accessing `site.mobileView` or `site.desktopView` during the site initialization can lead to errors and inconsistencies when the browser window is resized. Please move these checks to a component, transformer, or API callback that executes during page rendering. [deprecated since Discourse 3.5.0.beta9-dev] [deprecation id: discourse.static-viewport-initialization] [info: [Designing for Different Devices (Viewport Size, Touch/Hover, etc.)](https://meta.discourse.org/t/367810)]

---

_[View the full topic](https://meta.discourse.org/t/change-share-icon-by-os/326617)._
