So do it? I really don't see the problem. I get that Deliveroo puts you on their platform even if you don't agree (the apps where I live don't do this), but if that's the case the restaurant is still getting the full price for selling their food. The customer pays the extra 20%.
Which means they might order less food than they would have with lower prices. Or that they might decide it's too expensive, and order from another restaurant.
Yeah, there should be a regulation that lets restaurants opt-out, or enforces price transparency on the delivery company's app (must show both original price from the restaurant in addition to final price).