By the way God favors humanity with guidance through those who his favor is regarding to (1:7). If people hate those who his favor is with regards to so much they deny God's guidance and favor through them, it's not the fault of God and it's the people's fault instead and as Moses' says if all humans choose to be ungrateful to God, then God doesn't need them and the Surah contextualizes that he will eventually destroy them if they continue their oppressive ways.
The way Mahdi is in the Quran is neither just as good news nor just a warning, but many possible prophecies, and which one will take place is to be determined in real time, and we hope he will be a mercy for the whole world but I won't hold my breathe for them to be all believers. Our track record is ugly and we never as a whole generation of humans changed our ways with God's favor and his rope and his Messengers. This is the sad reality of history.
The Messengers were suppose to be accepted. Mohammad (s) was meant to come to a world accepting him. Bani-Israel Prophets were trying to prepare the world for him.
But Keep fighting God's light and say you don't need his chosen ones, see where it will lead you, and for those who pray for God's guidance, there is always a guide and miracles are still available.
Those who hate his guidance so much they deny the designated family of the reminder despite the clarifications of the signs after the dark sorcery trying to extinguish that light, their hearts are hard, and that's the nature of the cursed tree who's branches are as if heads of devils and which fights the tree that has been declared pure by God and only God attributes purity to who he wants, no permission is allowed for the people to do so.