I added a custom code for a live chat capability on a specific page.
It worked in production; then, I added another analytics code, and the custom live chat code disappeared.
I reverted to the previous working version, to no avail.
After a dozen publishing tries, I quit.
Custom code can appear if scripts are not added in the correct place or if tags are not closed properly for example (this is not a WeWeb thing by the way. it’ll happen in code and other no-code tools as well).
Can you share some screenshots of where you added the custom code in your project so we can help you debug?