The journey from the airport to Istanbul city center normally takes hrs; spare at least three-four hours since the possibility of you acquiring trapped in the website traffic in Istanbul isn't zero.
For me, given that I mostly travel solo to Turkiye and arrive in Istanbul