Visible through selective plane

Hello,

I am relatively new to Unreal, and I try to do a « Reveal Fx »

Green material need to reveal everything behind the blue plane, but not behind the red one.

Here, the pink material is under the blue plane.

How can I do this effect?

Thank you for your help!

Ben