Stand in for (someone)

To be a substitute for someone.

The new actor stood in for the famous actor who was sick.