Like the tub, the chickens kick up dirt and litter into it.
If you elevate the bowl up on some concrete blocks, less debris will get in it.
Also, it might be the debris that is causing the bacteria/mold growth, and not the heat. I use heated dog bowls and I don’t seem to have that issue. Maybe it’s because mine are up on blocks.