That is more than just a 'mobile' issue. It happens on whenever the screen is small or the font large. It would be nice if those buttons could shrink, but just having things wrap at the text-to-button boundary would go a long way to keeping the buttons together (even if below the text).
I am not sure that is should spill out the side of the page when we zoom (even a little on mobile and lot on desktop), but that is probably better than the wrapping behaviour we had. So it will do.