To prevent the bananas from browning, you can lightly brush the banana slices with lemon juice before layering them in the dessert. This helps to maintain their fresh appearance.