opacity mask effect mesh z fighting

Help troubleshooting Z-fighting issues with opacity mask effect meshes

https://youtu.be/GO5zQ5tUUbM

I created an opaque mask effect by watching the video below. But z-fighting occurs for overlapping meshes. Do you know how to solve it?


Z-fighting occurs for overlapping faces.