AR Masking with UniversalAR and A-frame

Hi guys how can I apply masking shader/effect to geometries and gltfs on webAR / A-frame ?

So to do stuff like a portal or make objects go behind a package with image tracking ?

Thanks in advance