If you are using sprites the coordinates and size values are in % of screen so although different aspect ratios will of course make it look different the screen positions should not change.
With text though there is the issue that at different resolutions the text sizes are different.
You can detect this in the code and for example use text size 3 or really low resolutions, 4 for medium and 5 for high resolutions which will improve matters somewhat.
Ultra-Wide aspect ratios cause a big problem in GG, as they do in most game tbh, in that case you have little choice but to simply put a warning on your game to say not compatible with UW monitors.
Been there, done that, got all the T-Shirts!