There's no exact way to play against Mario because of his well-rounded style but I'd suggest staying close to him with aerials and try to shield grab; Mario's tilts and grabs are short ranged and you don't want Mario to control the match with fireballs or the F.L.U.D.D. Also, hope the player isn't good at B-sticking because it'll be almost impossible to follow up at close range with the cape's wavebounce, making Mario very hard to approach. Furthermore, Mario's recovery is good and can protect himself fairly well against edgeguarders but his Up B is very gimpable by edgehogging, but don't get careless because Mario can stall in the air, prevent you from staying too close to the ledge, and mindgame you into hugging the edge either too early or late; try using edgeguarding to distract the player (Of course if you kill them, you kill them) so that they’ll be forced to use their Up B early.
*Be careful of Mario’s deceptively long ranged smashes*
*DO NOT get edgeguarded, juggled, or miss a tech against Mario*
*Mario is an all-around character and can be played in virtually any style so learn to adapt to whatever kind of playing style you’re up against; most players will just throw out a wall of combos against you (Ha, get it? Wall, wall of combos, Wall of Pain…yah, I guess it’s not really that funny...but I try…) and approach with fireballs, but can camp too*