If you don't have to make it the cheapest, you could go with a classic transformer , a bridge rectifier and a switching regulator after that.
Here's an example:
https://www.tme.eu/en/details/bv2020154/pcb-transformers/hahn/bv-202-0154/It's only 1.5$ in volume (2$ if you buy just one), around 35g , 23mm by 22mm and 15mm tall and can be soldered directly to the pcb (has pins going down) , outputs 6v AC at around 83mA , which means after rectification with the bridge rectifier you'd have around 7v DC and 50mA.
From here, you could either use a simple LDO or linear regulator to get 3.3v and 50mA, or you could use a cheap and simple switching regulator will easily convert this down to 3.3v at up to around 90mA (assuming around 90% conversion efficiency).
Saves you the hassle of making the high frequency transformer, with double insulated wires, all that insulation between windings and so on...
If you want something super flat and again money is not an issue and you can live with only a max of around 30mA, you could go the no transformer route.
Use a diode and a capacitor to do half-wave rectification and feed the linear regulator with at least output voltage + 12v
LR8K4-G takes up to 440v DC and outputs 1.2v .. [input voltage-12v] at up to 20mA. Configure it to output something like 40v..60v at 1-2 mA , then use a switching regulator to convert 40..60v to 5v at 100mA
Then use a digital isolator like
Adum5010 to isolate 5v and get 3.3v at up to 33mA (100mW) with an efficiency of around 30% (that's why you need 5v @ 100mA
No transformers, super flat, but the linear regulator will dissipate around 1-1.5w of heat constantly while the adapter is plugged in, and you're losing another half of watt in the conversions... so your adapter will be extremely inefficient.