Place the flour and baking powder in a bowl and use a fork to stir to combine.
Use a fork to whisk together the sugar, milk, butter, egg and vanilla, if using, in a small jug. Gradually whisk into the flour mixture until combined.
Place the jam in a small bowl and microwave on High for about 20 seconds or until hot. Set aside.
Pour two-thirds of the batter into a 375ml (1 ½ cups) microwave-safe mug. Spoon the custard on top of the batter, then top with the remaining batter. Microwave on High for 1 ½ minutes or until risen and cooked through. Spoon the warm jam on top. Serve with extra custard.