If you notice your iPhone’s battery icon is turning red, it means your battery level is now at 20% or lower.
Therefore you should charge your iPhone to get to full 100%. If you slow done battery consumption, you can turn on Low Power mode to lower the battery drop.
You can turn on Low Power Mode at Settings > Battery > toggle to enable “Low Power Mode”.
You can check here why my iPhone’s battery colour has turned to yellow.