Preheat the Oven: Begin by preheating your oven to 350°F (175°C).
Prepare the Cake Pan: Line an 8-inch (20cm) round cake pan with parchment paper and grease the sides.
Mix Dry Ingredients: In a large mixing bowl, whisk together almond flour, coconut flour, unsweetened cocoa powder, granulated erythritol, baking powder, and salt.
Add Wet Ingredients: In a separate bowl, beat the eggs, then mix in the melted butter and vanilla extract. Combine the wet ingredients with the dry ingredients, stirring until you have a smooth batter.
Bake the Cake: Pour the batter into the prepared cake pan and smooth the top with a spatula. Bake for 25-30 minutes or until a toothpick inserted into the center comes out clean. Allow the cake to cool completely in the pan.
Make the Mousse: While the cake is cooling, prepare the mousse. In a large bowl, beat the heavy whipping cream until it starts to thicken. Gradually add powdered erythritol, unsweetened cocoa powder, vanilla extract, and xanthan gum. Continue to beat until the mixture is thick and holds stiff peaks.
Assemble the Cake: Once the cake has cooled, remove it from the pan and place it on a serving plate. Spread the chocolate mousse over the top of the cake, creating a smooth layer.
Chill: Refrigerate the cake for at least 1 hour to set the mousse before serving.