Mortars are also large and heavy and require a crew to serve as well as spotters to direct fire which means you need to have people closer to your target and working communications.
All of this complicates the logistics considerably which makes them less effective and more dangerous to their operators.
Effective mortar attacks can be fairly easily countered in the long term by jamming radios, cutting brush and removing other natural hiding spots and by killing experienced mortar crews.
Drones can be piloted by nearly anyone and with basic consumer grade equipment they can also be piloted from anywhere in the world as long as you have an internet connection.
Well you can’t order C4 on Alibaba either. But if you can get C4 you can likely get a mortar.
Mortars and mortar rounds on the other hand aren’t as easy to get and require trained crews to employ.
Weapons don’t grow on trees, they are easy to get as long as there are conflicts in the region which are sponsored by superpowers or other patrons with sufficient resources that facilitate those shipments once those end they become rarer and rare.
ISIS was doing just that a few years ago. There were/are plans floating around on the Internet for stabilizing fins for common mortar rounds - 3D print those, and you’re 90% of the way there.