Classes for layers

That might be challenging.

There’s a command called _HideInDetail

Command: HideInDetail
Must have a detail viewport active to run this command

Then maybe this script could be helpful: