Using the correct type of cream cheese (full-fat, brick-style) and proper amount of sugar are critical for the right texture here. Your Oreo frosting should be sturdy if you follow the recipe. If you did follow the recipe and your frosting is still runny, the cream cheese may have just gotten too warm. Pop the bowl in the fridge for a few minutes to chill it a bit.