With a detail active, from the layer panel right-click on a layer and pick Layer On in this Detail Only.
Layer On in this Detail Only
– Dale