Go back functionality in native app design

I haven’t tried this

Set a state called back - type is up to you - it’s a list.
When a user ‘activates’ a group, log that in back by adding to the list.
Set each group to have conditional visibility based on the order of the list.

This only shows visibility logic.
Instead of back I use Current Stage.