Designing and manufacturing safe, small, efficient mains power supply that passes EMI and other regulations everywhere is surprisingly difficult, to the point that even large players outsource it (either using an off-the-shelf PSU module, or have one custom-designed (more likely, modified from existing design) for them. Most gadgets use simple external PSU and many large players do not even bother to ask for custom labeling, so chances are high it's just Meanwell.
For example, I have never designed a "normal" DC/DC mains PSU when one exists off the shelf.
If you do that, then 99% of your work will be regarding that power supply, and 1% of that IoT gadget design (or whatever you are doing).
If you still want to do it, look at fully integrated flyback ICs that come with switching transistors, like the ST's VIPER series. Companies like Wurth Elektronik have off-the-shelf flyback transformers. Following the appnotes, you'll be able to build a decent mains supply without investing years of your time into it, and as a hobbyist you can skip all EMC and just hope it doesn't interfere your own gadget. But it still likely doesn't make much sense (your time's better spent otherwise), unless you actually want to learn about designing such supplies.
But all in all, if you still don't recognize what buck converter is, and that you don't want that one, you have a long way to go. Start by learning the most common topologies.