For example, this one, is the cheapest i've seen (they sell those in a 99p shop near me in London). The cover isn't glued it just clips on so its easy to pull apart and from what i can tell the circuit is similar'ish to this, so just replace that ZD 5V with a 3.3v zener.
Here's a photo of that with the cover off and the zener circled in red.
With the USB socket unsoldered there is enough space inside to include an ESP-01 and a small sensor too...
Right behind the USB connector you see the transformer (which can be very small if the switching frequency is high - nowadays then go up to > 1 MHz). Behind that is the "switching" transistor, on the left you see the optocoupler to isolate high voltage from low voltage, in blue is the fuse (automatic, mostly NTC). I can't decipher the role of the IC on the far right, it may be part of the switching driver, which mostly is an IC with more pins than this. And then of course the black diode, probably schottky, which is probably a single phase rectifier. Or the unknown IC is a full two phase rectifier of course. The small diode is probably just an 1N4148, no zener.
Don't mistake a modern state of the art switching power supply with an abomination of a power supply! BTW if no transformer is used, it's UNSAFE.
eriksl wrote:I can't decipher the role of the IC on the far right
It is probably a diode bridge, since it is very near of the AC wires ...