Yes, rotate and for the most part dont even engage phalanx until you have to, since they are slow. Also try to take individual units out of position. Even so, most of at least medium armoured units should be able to pin them in place for good amount of time before casualties build up, giving you a chance to flank them with missiles and other stuff.
Also flanking with missiles is not cheese, that is valid ancient tactic, just hard to pull of when enemy flanks are secure. For example Onasander in his Strategikos said that once lines are close, missile troops need to move to flanks and having ranged units behind your main line is waste of their potential.
It is short bug a good read!
https://penelope.uchicago.edu/Thayer...sander/H*.html