When dry ice sublimates into carbon dioxide, it will absorb a lot of heat, so that the air temperature will drop, and the water vapor in the air will condense when it is cold, producing white smoke. Carbon dioxide is a colorless gas, so this smoke has nothing to do with carbon dioxide.
Shanfeng chemical production
Bulk dry ice
Similarly, if liquid nitrogen is left at room temperature, it will also produce smoke. Like dry ice, the principle is also caused by water vapor.