Various solutions,
1) chain cleaner thungymabob, I got the muckoff one what attaches to a spray can, dunno how long it’ll last but a few seconds of spraying leaves the chain spotless so it’s worth it for the lack of faff. rinse with a hose, spray with WD40, and lube as nomral (see 2).
2) never clean the chain, just wipe off the mud, ad more chain lube and wipe off ALL the excess before the next ride. The chain should be almost dry on the outside. If it’s oily then that attracts dirt and makes things worse. The chain should be spotless and oil free on the outside before the ride otherwise it only gets worse.
3) jamjar of white spirit/petrol/diesel. Dirt cheap, no detergent so no need to rinse the chain before oiling, just put it bakc on the bike and let it dry. Some roadies make a mix of petrol and oil for this, the petrol evoapoates leaving a very thin coating of oil.
4) putoline tin wax, the most faff, but even in winter it lasts weeks (does wash off if it’s really bad, but it has to be so bad that nothing else would survive, brake pads gone inside 5 miles, car park flooded, tractors to pull the cars out of the mud, endurance racing kinda bad).