How to create xray vision?

Hello. I want to create xray vision for my project, but I need to make object partially visible. For example I’ve created usual cube with some cavities inside it. You can’t see it from outside:


but when you “cutting” the part of a cube you can see it:

How can I achieve similar result in unreal? Can I do it at all?

There are a decent number of tutorials for something similar on youtube search:
wall hiding topdown ue5

For example: