I have a work around for this problem. Idea is to assign position in percentage instead of hard coded coordinates.
1- First find out your base resolution, on which further work will base on. Print
Screen.height. In my case it is
428 x 321.
2- Find out the percentage of current position with resolution. If I consider
GUI.Label(new Rect(50, 50, 300, 300), ("Hello!"));, then it'd be
50.0f/428.0f width percentage and
50.0f/321.0f height percentage.
3- Now assign position w.r.t. these percentages. Like,
GUI.Label(new Rect((50.0f/428.0f) * Screen.width, (50.0f/321.0f) * Screen.height, 300, 300), ("Hello!"));