Prototyping settings menu affecting another visual

I’m looking for some help prototyping a feature turning On/Off in a menu (page 1), which changes a variant on (page 2) to display this.

The issue I’m having is that they’re on separate pages, and it doesn’t appear these components can interact for that reason - or at least not that I’m aware!


One solution I came up with is the On/Off button swapping the back button (on the menu page) with a variant that directs to another page with the feature activated.

The issue with this is that it would lose the ‘statefulness’ of navigating the app, as the menu can be accessed from various scales of detail, and would only be able to direct to one of these.