By the time damage cantrips start scaling, not only are martial classes getting extra attacks, but they are also using magical weapons to increase their hit chance and damage.
Furthermore, by the time you are getting to the later levels, most spellcasters have enough slots that they won’t be casting them as often either and can cast much more powerful spells.
The cantrips are fine. They aren’t generally unbalanced expect for specific instances like playing a coffeelock with 8 eldritch blasts per turn, but that’s fine. It’s fun, players like doing that, and not everything needs to be balanced.