Player being able to see through objects when using camera offset (looking for a scriptable solution)

hello! so i have a big problem with my game, the issue is that the player can see through walls because i’m using camera offset! and i want to keep the camera offset because then i can somewhat see my body normally. i have no idea on how i can fix it, nor if it’s possible to. help would be appreciated!

u can put 2 walls, that’s the way i always do it to not rot my brain to find a scriptable solution

the problem is i kinda can’t. because it would break some stuff that needs to be one wall only.