The Quran says that Allah never punishes until He has sent a messenger, that messengers came as bearers of good news and warners so that people would have no argument against Allah afterwards, and that no soul bears another's burden. It also says that Allah does not burden a soul beyond its capacity. So a person who lived in a place where Islam never reached them, or who only ever heard a distorted picture of it, is not judged like someone to whom the truth was clear.
The Prophet ﷺ said, in a hadith in Sahih Muslim, that anyone of this community, Jew or Christian, who hears of him and dies without believing in what he was sent with will be among the people of the Fire. Many scholars understand 'hears of him' to mean that the message has actually reached them in a way that makes the truth clear, and not merely that they have heard his name or a caricature. Some scholars say that people who were not reached will be tested by Allah on the Day of Judgment, and others leave their case to His justice. Scholars stress that they will not be wronged.
This is an honest answer, and not a loophole: Islam does not teach that all sincere seekers are saved whatever they believe, and it does not teach that people are condemned for not knowing what they could not know. What it does say is that Allah judges the heart, the knowledge and the opportunity of each person, and that no one except Him knows the outcome. If the question is personal, the best response may be the simplest one: now that you have heard it, look into it with sincerity.