Traditional online multiplayer (matchmaking, lobbies) is not supported on 3DS. Nintendo's 3DS online infrastructure was limited to:
For robust online multiplayer, Nintendo Switch or PC are better choices. The 3DS excels at local and singleplayer experiences.