Changing overflow direction

Hi

I’m designing a site in Hebrew, and I have a row of buttons to control the states of a multi state box. On the desktop version, all the buttons are visible, but on a small mobile device, I have to use scroll overflow.

My problem is when I set overflow to scroll > horizontal, the content aligns to the left, and not to the right.

This is what happens:

But this is what I want:

Is there a workaround?
Thanks
Tal