WebGL z-fighting - WebAssembly application

Hi to everyone it is my first time posting here.
I’m currently developing a WebAssembly application based on Qt/QML and had issues with z-fighting which eventually got resolved with a new Qt version. The issue got resolved for desktop applications but when I tried on a WebAssembly the issue still is persisting. I would be happy to provide a video/more information if needed, the code is posted on the Qt forum. My knowledge on OpenGL/WebGL is very limited.
image