How to fix component constraints to fit right-to-left text?

I tried creating a typing animation based on this tutorial. It was going fine, but the tutorial is for English and I’m working in a language that writes right to left, not left to right. Now I have a component made up of a blinking cursor and the word. It works like in the tutorial, but for some reason when it plays the component is anchored on the left side, so it expands right and falls off the frame. I checked every instance I could and all of the constraints are set to right and top. I’m new to Figma and this might not be the source of the issue, but it’s my best guess. Any advice? Thanks.