How can i make something disappear depending on camera angle?

I am making a rpg game and i want to do that thing desappear depending on camera angle, because if i don’t do that the player won’t be visible (because of the walls)