How to change resolutions in-game?

I want the user to change the resolution settings as he/she pleases in-game. I’m using UMG and I’m struggling. Would like to know if anyone can help or refer me to a tutorial on how to do so? Any help would be largely appreciated!!

Can you call SetScreenResolution(x, y)?