The next component is the game file itself. Super Mario Maker 2 files typically come in .NSP or .XCI formats. Again, for legal reasons, you should create a digital backup of your own physical or digital copy of the game. Once you have the file on your device, open your emulator and point it to the folder where the game is stored. The emulator will scan the directory and the Super Mario Maker 2 icon should appear in your library.
needed to run Switch emulators, or do you want to dive into the legal safety steps for dumping your own game files? The next component is the game file itself
(e.g., you own the original game cartridge and dump your own ROM), here is the current state : Once you have the file on your device,
Consider Super Mario Run (official, free demo) or Levelhead (a similar "create & share levels" game available on Google Play). for legal reasons