The best way to mitigate is, if she is NOT potty trained, is to use it as a time to potty train. Sitting her on the toilet before the shower to separate potty time and shower time. She might be ready for potty training if she isn’t, she just needs to learn her body signals.
Yep, my son used to do this. If I noticed he hadn’t gone before it’s time for a bath I’d bathe him quickly and get him out. In and out as quickly as possible.