My problem is very similar to Unity WebGL ok in editor, pink screen in build but the offered solution does not work. Like in the question, the materials look fine viewed in the Editor but when clicking on build & run most materials turn pink. I have added the shaders that are used for the material under Project Settings > Graphics > Built-in Shader Settings
and made sure that I am using the correct URP asset by deleting all but one and making sure it's used by WebGL when building unless I missed something. This did not solve the problem.
Disclaimer: I didn't create the shader myself but it came with an asset that I bought so unfortunately I can't post the shader here. I therefore have to describe the shader as best as I can but my knowledge of shaders in general as well as the tool that was used for them is very limited (please let me know if I can provide more information).
Shader type: Universal Lit
Is it possible that Amplify Shader Editor is not compatible with WebGL? Why does any edit to the shader using this editor result in pink materials? What am I doing wrong. Bear in mind I am not familiar with the tool but as it stands I cannot create a working shader using the editor that will not look pink in the browser but looks as expected in the editor view.
I've poked around further and I finally found a solution for my problem. The shaders used shader model 4.5, which doesn't seem to work with WebGL.
Under Output Node > SubShader > Shader Model
I changed the value from 4.5 to 4.0 and now it seems to work without a problem. I also tried newer models, which didn't work.