How to scale gameobject position in different screen resolution?

So I’m just experimenting about stuff cuz I’m still newbie and I just want to ask how to scale gameobject position in different screen size.

I want a simple 2D square sprite to remain at the edge of the screen but when I change the resolution, the gameobject remains on its original position.

Can you guys help me? Appreciate it THANKS!

You can always use UI objects and set the anchor points and the object will rescale if the screen does too.
But for sprites try looking it up on google.