Comparing handhelds to home consoles, I will not do. They are different markets. But here is my list, with them separated from most powerful to least. Major consoles only.
Master System
NES
Sega Gamegear
Gameboy
SNES
Genesis
N64
Playstation
Saturn
Xbox
Gamecube
PS2
Dreamcast
PSP
DS
PS3
Xbox 360
Wii
Vita
3DS
PS4
Xbox One
Wii U
Xbox Series X
PS5
Xbox Series S
Switch