The NES, SNES, N64 and GameCube were part of the "bits race" and kept pushing forward in hardware power. Mario 64 is credited along with Wing Commander for creating the AAA graphics race at all costs behavior in the industry.
The Wii wasn't entirely a direction change, Nintendo felt competing on CPU power now was not interesting and went for motion controls, that later all other consoles imitated.
Then we had the Wii U that tried to mix TV with handheld. Wii U kinda sucked so they just tried it again with the Switch and made it portable. This again is spawning clones (steam deck for example).
I am not a Nintendo fan (I was on Sega camp during console wars and currently I prefer the Playstation) but Nintendo hardware always is impressive.
PS4 and 5 for example are boring, just mostly normal x86 computers with custom OS.