Ultimately it comes down to personal preference, but in our experience, the Switch has proven to be an excellent choice for 2D platformers. Not only can you play on the go, but the genre translates wonderfully well from your home TV onto the Switch's portable screen.
There's also an exhaustive list of 2D platformers available on Switch; far more than we've listed above, including historical classics and games that didn't quite rank as 'The Best' for us.