Preheat your oven to 350°F. Grease a 9-inch round or square baking pan and set it aside.
In a large bowl, whisk together the flour, xanthan gum, cocoa powder, salt, baking soda, and sugar.
Add the sour cream, oil, eggs, vanilla, and warm water. Mix until smooth. The batter will be thick but pourable.
Scrape the batter into the prepared pan and smooth into an even layer.
Bake until a toothpick inserted in the center of the cake comes out mostly clean or with a few moist crumbs attached (about 30 minutes). Do not overbake.
Remove the cake from the oven and allow to cool for 10 minutes in the pan before inverting onto a wire rack to cool completely.
To make the ganache topping.
In a small saucepan, heat the cream until it just begins to simmer. Place the chopped chocolate (use 10 oz for whipped ganache) in a medium bowl and pour the hot cream on top.
Let it sit for 1 minute to melt, then stir until smooth and glossy. Pour over the cooled cake and gently spread to the edges so it drips down the sides. Let it set before slicing.
To make whipped ganache
If you used only 8 ounces of chocolate and haven’t cooled the ganache yet, melt 2 more ounces and stir it in now. Let the ganache cool at room temperature until it’s no longer warm to the touch.
Cover and refrigerate until it’s scoopable. Transfer to a large bowl and beat with a handheld or stand mixer fitted with the whisk attachment until fluffy and lightened in color (about 5 minutes).
Add confectioners’ sugar, if using, and beat until smooth.