I think technologically this is something an engineering team should tackle. It would probably benefit people who use touch devices for work in dirty and wet environments as well.
How long do you spend in the shower that you have time to doom scroll? Maybe it's time to switch to baths if you have a tub. If you don't, I would boringly suggest just not taking the phone into the shower if you know that the touch sensor will be wonky. It may speed up the shower and lessen your water consumption as a side effect. That's good for your wallet and the environment. The internet can wait 5-10.
I get the meditative effect of a hot shower after a long day. I enjoy that on occasion as well. At no point did I ever think the experience would be improved by a cell phone with a camera being present.
Hands up if you didn't already know that. Or intuited it. To me this seems to be something only US-Americans who argue purely ideologically for a "small government" need reminding of. They're paradoxically often the first in line calling for government intervention when their drinking water is full of poop or something.