UI for different aspect ratio screens

So I am making a responsive widget for a game. It’s all responsive given a 16:9 aspect ratio screen but when I change the aspect ratio alignments from the top, bottom and sides become uncorrected.
Like when I decrease the height both sides pushed the UI to the center.