This functionality is currently available only on Onshape's browser platform.

Feature Toolbar with Display State Icon Highlighted

Assign a name to a specific display state (that is, with certain parts, subassemblies, or mates hidden or in view) of the assembly and switch to a particular display state easily at any time.