Dissolve the cornstarch in the milk in a bowl and set aside. After that, melt the grated chocolate with the heavy cream in a saucepan over low heat.
Remove from heat, add the cornstarch and milk mixture, and the sweetened condensed milk.
Cook again over low heat, stirring, until it thickens and becomes glossy.
Let cool slightly, then pour over the passion fruit cream in the glass dish. Spread evenly and return to the refrigerator.
Finally, prepare the lime cream:
Mix the sweetened condensed milk with the lime juice in a bowl until light and creamy.
Remove the dish from the refrigerator and spread the lime cream over the other layers, smoothing it out.
To finish, refrigerate for another hour before serving this creamy layered dessert in the glass dish.