You could add an overflow hidden, or make sure the min margins don't outgrow the padding around the items on mobile, but you make a solid point that it's not that automatic
The problem with using overflow:hidden is that if you've got something else on the page that genuinely needs horizontal scrolling, like a wide table, then that will get truncated.
For what it's worth, here's how I'd solve the problem, using wide spaces characters to make the gap between the anchors.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.