I see you made it in Godot but in Unity, it's basically that your UI lives on what is called a "Canvas." You have to anchor the UI elements and tell them to resize based on the screen size. Once again, not sure how that works in Godot but it shouldn't be too bad!