Fluid domain doesn't go away

I’ve baked both data nd mesh of a simulation for a limited number of frames. When I switch to Viewport Shading, the domain remains visible for the whole animation with the exception of the baked frames, same for the render. How do I make it disappear?