Viewport resolution problem when packaging project?

Hello everyone, I am having problems with resolution and viewport when I package the project. When I run the game in the editor, the interface resolution looks perfect on my screen (5120x2880) and if I make the game full screen, the viewport size scales to that resolution (I make it show me the viewport resolution at through a print string).

But when I pack the game, when I run it, it opens in the same size window (with the resolution shown by print string), but with half the resolution (2560x1440 when maximized), this causes the quality of the UI to drop. look horrible and ugly. I don’t know why there is this difference in the editor and when I package the game. Can someone give me a solution?

Thanks in advance. If anyone needs more information don’t hesitate to ask.