There is no standalone “Super Mario Bros. 2” release on Nintendo 3DS. You’re likely thinking of one of these:
Super Mario Bros. 2 (NES) – Never officially ported to 3DS as a standalone title.
Super Mario Bros. 2 (as part of Super Mario Bros. 25th Anniversary Edition) – A 2010 Wii compilation that includes the NES original; not on 3DS.
Super Mario Bros. 2 (Game Boy Advance – Super Mario Advance) – Playable on 3DS via Virtual Console (purchased on Wii U eShop, then transferred) or Nintendo Switch Online + Expansion Pack (GBA library).
New Super Mario Bros. 2 (3DS, 2012) – A completely different, original 3DS game.
Best Search Terms
“Super Mario Advance 3DS Virtual Console”
“New Super Mario Bros. 2 3DS”
“Super Mario Bros. 25th Anniversary Edition contents”