How do I right-align a label with in a grid cell

I have a label that is added to a grid. The grid column where the label is added has been defined LV_GRID_FR(1). The label is added with LV_GRID_ALIGN_STRETCH so it takes up all of the space. I want to right-align the text in the label.

I’ve tried using lv_obj_align(label, LV_ALIGN_RIGHT_MID, 0, 0) but that did not work. I also found a post suggesting setting the label’s long mode but I don’t think this applies to my issue.

What is it the thing that I am missing? Thank you.

Any help with this would be appreciated.

lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN);