Preheat oven to 350°F. Grease a baking pan.
Mix melted butter, sugars, eggs, and vanilla in a bowl.
Add flour, cocoa powder, salt, and baking powder. Stir until combined.
Pour batter into the pan and bake for 25-30 minutes. Let cool.
Beat cream cheese, caramel sauce, powdered sugar, and vanilla until smooth.
Whip heavy cream until stiff peaks form. Fold into the cream cheese mixture.
Cut brownies into cubes. Layer brownies, cheesecake mixture, and whipped cream in a trifle dish.
Drizzle with caramel sauce and sprinkle with chocolate shavings.
Refrigerate for at least 2 hours before serving.