You cannot be a zombie in the campaign, where you and three friends are always the survivors. The infected side is reserved for competitive play.
Choose Versus mode and the game handles the rest: teams swap roles between rounds, so each side spends time as survivors and as the special infected. There is no separate menu toggle for it — the rotation is automatic and part of how Versus is balanced.
If you want to practise a specific infected, a local Versus lobby with friends is the least chaotic place to learn the timings.