We find in Isaiah 8:2 that Isaiah took two trustworthy witnesses who are Uriah the priest and Zechariah Ben Yeberachiah. If this Zechariah is none other than the prophet Zechariah as Makkos 24b suggests, how could Isaiah take him as a witness if Zechariah lived centuries later during the Persian rule?
Ibn Ezra writes:
את אוריה הכהן. היה כהן גדול בימים ההם, גם זכריה היה אדם גדול, ודרך הדרש ידועה על נבואת זכריה הנביא ואוריה הנביא:
Uriah was the High Priest, and Zecharia was a prominent citizen. And the well-known Midrash connects these names to the prophets Uriah and Zecharia
I understand this to mean that the Midrash is not saying this is a literal reference to the the later Zecharia, but the Midrash connects the context to his later prophecy.