Prepare your mug by lightly greasing the inside with butter or cooking spray to prevent sticking.
Mix the dry ingredients in your mug—the gluten-free flour, granulated sugar, baking powder, ¼ teaspoon cinnamon, and salt—until well combined with no lumps.
Add the wet ingredients (milk, melted butter or oil, and vanilla) to the mug and stir with a fork until you have a smooth batter, making sure to scrape the bottom and sides.
Make the cinnamon swirl mixture by combining the brown sugar and additional ½ teaspoon cinnamon in a small bowl or directly on top of the batter.
Create the swirl effect by gently folding the cinnamon-sugar mixture into the batter with a knife, creating ribbons of cinnamon throughout without fully mixing it in.
Microwave on high for 1 minute 30 seconds to 2 minutes (microwaves vary, so start checking at 1:30). The cake is done when it rises and is firm to the touch but still slightly moist.
Let it rest for 1 minute before adding any optional toppings—this prevents the cake from becoming gummy and allows it to set properly.