Preheat the oven to 375°F (190°C).
Lightly grease a muffin tin with cooking spray.
Press one wonton wrapper into each muffin cup, allowing the edges to hang over the sides.
In a mixing bowl, combine the ricotta cheese, egg, Italian seasoning, garlic powder, salt, and pepper. Mix until well combined.
Spoon a layer of the ricotta mixture into each wonton cup, filling them about halfway.
Add a spoonful of marinara sauce on top of the ricotta layer, followed by a sprinkle of mozzarella and Parmesan cheese.
Repeat the layering process until the cups are filled, finishing with a layer of marinara sauce and a generous topping of mozzarella cheese.
Bake in the preheated oven for 15-20 minutes, or until the cheese is melted and bubbly.
Let cool for a few minutes before carefully removing the mini lasagna cups from the muffin tin.
Garnish with fresh basil leaves if desired and serve warm.