Aligning HTML elements to 3D not working in WebAR

Good Day,

I have created an application for WebAR with 3D mode and AR mode. I followed the process from threejs fundamentals The html UIs are getting aligned in 3D mode but they are not getting aligned in the WebAR.

Please help me solve the issue.

Thanks