The easiest way would be to check the resolution with python and then scale the HUD elements individually with python (and position if needed). However you should only do this whenever the size has been changed.
As Thatimster says, if you want to do this you should make your gui independent of resolution using python to scale the objects.
Also it’s a good idea to restart the game when resolution changes since it can mess up hit boxes for mouse over.