Powering ESP32 project from mains power
As the fan is probably to most power consuming device I'd convert your mains to 12V and suppy the rest of your peripherals from there. This presumes that you can build a small PCB holding the required DC/DC converters (12V/5V and 12V/3.3V). 

Another approach would be to have a separate supply for all your different voltages.