Reading through the comments of the thread you linked…I now get the feeling that this will only adjust the console/terminal resolution. The client that I have DietPi installed on runs a window manager (openbox). Will this also adjust the resolution for that?
I think you need to use xrandr then.
Check with this command what outputs are available and which resolutions.
You can set then one with e.g.: xrandr --output HDMI-1 --mode 1024x768.
This might be a helpful tip for future readers…If you can’t be arsed to shuffle on over to the physical location of the DietPi device, you can still check the resolution of the attached displays remotely via SSH. Just set the DISPLAY environment variable and then run xrandr --query.
export DISPLAY=:0 # The main display is usually 0
xrandr --query