Hide outline post process behind walls?

hey, can someone explain how you can hide the outline behind walls? would be awesome

i want to use it as “style” like in borderlands & other games

and is there a way to activate/render the outline on every wall & objects?

thanks for help, have a great day!