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.mobileVieworsite.desktopViewduring 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.)]