Delivery in particular remains underpriced at even the high prices we see. The way the platforms are set up, you're basically paying to chauffeur a single order straight to your house, on-demand. Mobile tech and "own car" efficiencies don't begin to cover those costs. The problem was that this is the kind of service that they had to offer in order to supersede existing delivery.
In an ideal world, you'd instead have drivers assigned to either particular neighborhoods or particular restaurants, allowing for order-stacking and predictable routes. Bonus for set-time daily deliveries (get your order in before 6 or have to wait until 9). Bigger bonus for set neighborhood drop-off points (like those consolidated mailboxes, but warming compartments). Anything more bespoke would cost extra.
Unfortunately, the balance of inefficient operations, decreasing competition, and "line go up" is that prices have to increase.
Delivery was financially viable for decades before delivery apps. That's why restaurants did it on their own. What's not financially viable is VCs investing billions to create global oligopolies, and and then expecting outsized returns on that investment.
At the same time you have processes like increasing suburbanization and development of even more car-centric infrastructure, which makes houses and restaurants even further from each other, and makes cheaper delivery vehicles like motorbikes infeasible.