I need to mask all labels from a layer when they are outside a covering vector. On the image below there are contours; the lines are visible only if they intersects a polygon from a mask layer that is excluded with a filter.
I'm be able to hide the lines that doesn't intersects the polygon, but I can't do the same with the labels.

I'm using QGIS 3.22, below the filter managed from atlas.
