To play it, one generally requires an N64 emulator (like Mupen64Plus or RetroArch) and the specific patch file applied to a legally dubious ROM of the original game. The "APK" files floating around shady download sites are often pre-packaged emulators bundled with the game. While convenient, they skirt the lines of copyright infringement and often come with the added risk of malware or intrusive ads.
It is important to clarify that Mario Builder 64 was primarily developed for PC (Windows/Linux) using the SM64 PC Port codebase. There is no "official" standalone APK produced by the original developers. mario builder 64 apk
Here is where the conversation takes a turn toward the consumer reality. Search for "Mario Builder 64 APK" on Google or YouTube, and you will find hundreds of results. To play it, one generally requires an N64