I watched a dive guide defog his mask and decided to 'do what he's doing' and never looked back. WhatEVER kind of soap you use, put it on a toothbrush and scrub it all over the lenses of your mask. After you scrub, scrub it some more. After you've scrubbed it really, really well, rinse it once. Then right before you splash put a little bit of water in one more time, dump it and don your mask. Works great for me. Doesn't matter what kind of soap - dish soap, laundry detergent (the DM was using powdered laundry soap), baby shampoo - I still have some stuff I got at the dive shop and will use it till it's gone and then will use the baby shampoo I have hoarded over the years.
Btw, I always use a fresh water rinse - and try to use lukewarm rather than cold water. But I have avoided using the communal rinse bucket, even pre-covid. Ewww.