In Belgium, the govt set up a system where "freelance" cleaners get paid 15€ / hr and also get health care, pension etc. This is all done electronically / online and works really well.
Normal people don't use cleaning companies but loads of people had a cleaner nevertheless who was paid "in black" prior to this system.
Now everyone's insured, pays taxes, gets long term benefits etc.