If you stand in for someone, you take their place or do their job, because they are ill or away.
I had to stand in for her on Tuesday when she didn’t show up.
...the acting president, who’s standing in while she’s out of the country.
PHRASAL VERB : V P for n , V P
see also stand-in