If you're straining yogurt at room temperature for a short period, such as a few hours to overnight, the risk of spoilage is minimal. The acidity of yogurt helps inhibit the growth of harmful bacteria. However, if the room is exceptionally warm, it's recommended to perform the straining process in the refrigerator.