Preheat the oven to 180°C / 350°F (160°C fan-forced). Grease and line an 8-inch (20cm) round cake tin with baking paper.
To make the cake, place the gluten-free flour, xanthan gum, cocoa powder, salt, baking soda, and sugar in a large bowl. Whisk to combine.
Create a well in the centre of the dry ingredients. Add the sour cream, vegetable oil, beaten egg, egg yolk, and 1/2 cup (120ml) warm water, mixing well after each addition. The batter will be thick.
Pour the batter into the cake tin and smooth it out.
Bake for 25-30 minutes or until a toothpick or skewer inserted into the centre comes out with just a few moist crumbs attached. Leave the cake to cool completely in the tin while you prepare the mousse.
For the mousse: whisk the 20g cocoa powder with 1/2 cup (120ml) warm water and the additional 1 tablespoon of warm water in a small bowl until completely dissolved and smooth. Set aside. Melt the butter and chopped dark chocolate in a microwave-safe bowl in 30-second bursts, stirring between each, until fully melted and smooth. Set aside to cool to room temperature.
In a stand mixer fitted with the whisk attachment (or using a hand mixer), whip the cold cream on medium speed until soft peaks form. Add the icing sugar gradually, then increase speed to medium-high and whip until thick, glossy, and holding stiff peaks.
Add the cocoa mixture to the melted chocolate mixture. Gently fold the chocolate mixture into the whipped cream until fully combined.
To assemble, place the cooled chocolate cake into the base of an 8-inch (20cm) or 9-inch (23cm) springform tin with tall sides. Trim edges if needed to fit. Secure a cake collar or greased baking paper strip around the inside edge of the tin.
Pour the chocolate mousse over the cake and smooth the top. Refrigerate for at least 4 hours, or ideally overnight, until fully set.
Carefully remove the springform ring and peel away the collar. Garnish with fresh raspberries, cocoa powder, or chocolate shavings. Serve cold.