Occlusion in AR

Hi
Im working on AR Template (IOS). So , I have added walls in the AR Template so that the placed object is not placed outside the walls or its kind of boundary. So if I got out the boundary or the walls I want the placed objects and the walls to be occluded or in simple terms hidden ,so if I enter the boundary or walls area again it will be visible but when im outside it should be hidden .
So is there any way to achieve this ?or can we use any material on the walls so that from outside it should occlud objects placed inside it ?