In LTS version Ui Toolkit has normal element sizes in build but wrong sizes in editor.
Elements ignore editor viewport size and just stretching at runtime, inside UI Builder works fine.
I still use unity 2022.3.20 for this reason, in it version all fine.
Was fixed in 6000.0.32f1