Scaling GUI with resolution

I am trying to scale the gui with the screen size but what I am getting is this



I am using Matrix4x4.TRS and also tried GUIUtility.ScaleAroundPivot

GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, Vector3
       (Screen.width / 1920f, Screen.height / 1080f, 1f));

Edit: I have no idea why is not showing the image but can be seen here GUI.png - Google Drive

You are in the wrong forum. It looks like you are using the legacy UI System. The forum for that is here.
However, there are tons of reasons why you shouldn’t use the legacy UI system. So, I would recommend to replace your UI with UGUI.

Ok, I Did not know about the other forum. Right now I am working on converting OnGUI to the new system