Making an actor invisible behind a transparent wall

So the thing goes this way, im making a game and i´m trying to make my actor invisible behind a transparent wall, kind of like the invisible coat from harry potter but with a wall infront of the actor, so when you rotate the camera you will see your actor render and unrender in the edge of the wall.

The idea comes from this trailer,

And instead of an static image infront of the actor i want it to not render it behind the invisible pannel/wall.

I´m kind of new to unreal (i´ve only 1 year of experience with it and keep strugeling with some things),also thank you very much.

This effect should be doable using custom depth.