why my outline like this?

why my outline highlight through the mesh? i dont know what is my problem? can someone help me or explain?

If you are using custom depth outline material, it is how that outline works.

You can either modify material so it does not display outline when its hidden, or you can do additional check to outlined mesh (if its visible from camera) in blueprints.