The easiest method is to add some gelatin to the mix. Gelatin is a thickening agent that is commonly used in cakes, custard, and baked goods. There are also vegan and vegetarian-friendly thickening agents available too such as chia seeds.