(C#) How to scale buttons and GUI Text to screen

How can you do that? I want to have a game where everything is the same relative size no matter the screen size. This would be for both computer and mobile. I already have the rectangle relative to the screen size but it’s font isn’t. So how do I make button fonts and GUI Texts relative to the screen size?

Do I have to do something like font size is equal to (fraction) of the screen size or is there a better way for GUI texts? And for buttons?

Here’s the project: http://swissandor.github.io/2048/
It’s a recreation of 2048.

You could use Screen.width and divide it by whatever to get your correct size and it will take the devices screen width or screen height(Screen.height) and than make it that size. That will make the same relative size for all!