Anchor frame to right side of screen

HI everyone,
so I’m trying to anchor frame to right side of screen regardless of screen size. This is what i did so far:
image

And here are the settings:
image
image

As you can see I used negative offset to create smal gap between frame and end of the screen and here is the problem, because on smaller displays this gap is way too big:
image

I know that this happens because of offset but I couldn’t find any solution for this. So my question is if is there any workaround?

You can use scale, instead of having {1, -80} you could have slightly less than 1 depending on the size you want - such as {0.99, 0} so that the gap is 1% of the total screen width.

I tried this and it unfortunately doesn’t work either, look what happens for example on 21:9 monitor:

with this position:
image