Ubuntu stopped being the lightweight Linux distro, and Linux Mint filled the gap it left behind
(www.xda-developers.com)
I feel like this was true maybe 10-20 years ago, but any semi-recent desktop or laptop can run KDE or Gnome fine. If you are running an SBC with limited RAM, then maybe you should look at another desktop GUI.