How to hide water in objects UE5

I recall the another method involving stencil masking, but have never implemented it myself and am unsure if things have changed in UE5.