Step 1: Melt the Butter
Place the unsalted butter in a microwave-safe mug (at least 12 ounces). Microwave for 20-30 seconds until completely melted. Don't let it bubble vigorously.
Step 2: Add Wet Ingredients
Pour the milk and vanilla extract into the melted butter. Use a fork or small whisk to mix everything together thoroughly until uniform with no butter pools floating on top.
Step 3: Incorporate Dry Ingredients
Add the flour, brown sugar, cinnamon, nutmeg, baking powder, and salt to your mug. Whisk everything together until you achieve a smooth, lump-free batter (about 30-45 seconds). Make sure to scrape the bottom of the mug where flour tends to hide.
Step 4: Fold in Apples and Walnuts
Gently fold the chopped apples into your batter using a spoon. If using walnuts, add them now too. Distribute the apple pieces evenly throughout the batter. Press down any pieces sticking up to prevent burning.
Step 5: Smooth and Prepare
Use your spoon or a small spatula to smooth the batter surface. Wipe any batter splashes on the mug's sides with a damp paper towel. The batter should sit about halfway up your mug to allow room for expansion.
Step 6: Microwave
Place your mug in the center of the microwave. Cook on high power for 90 seconds to 2 minutes. Start with 90 seconds, then add time in 10-second increments if needed. The cake is done when it rises significantly and the center looks set. A few moist spots on top are fine.
Step 7: Rest
Let your mug cake rest for 1-2 minutes after microwaving. This allows the cake to firm up and complete cooking in the center.
Step 8: Serve
Top with vanilla ice cream, caramel sauce, and extra chopped walnuts if desired. Eat directly from the mug with a spoon.