Assalaamu alaykum. Can you go out of the mosque while the Friday sermon is ongoing to have a non-Muslim who wants to be Muslim say the Shahadah (the two testimonies of Faith)?
All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
First of all, envisaging that one might have to go outside during the Khutbah (sermon) in order to make a non-Muslim utter the Shahaadah is somewhat far-fetched. How would he know, while sitting inside the mosque and listening to the Khutbah, that there is someone outside who wants to embrace Islam? Even if we assume that this is possible, then he does not go outside during the Khutbah because attending it is obligatory; some jurists have even stated that if there was a call for jihaad while a person is in the Khutbah, then he does not leave the Khutbah.
The author of Al-Mubdi‘ said, “A Muslim does not go out for jihaad during the Friday Khutbah or after the Iqaamah (the call to establish the Friday prayer) is called; Imaam Ahmad stated this.”
A Muslim should not ask very intricate questions or about matters that did not occur or which are not likely to occur, as this is included in asking too many (unnecessary) questions, which is Islamically dispraised.
The scholars stated that an example of dispraised questions is to ask a question without a need for it at the time of asking, as well as asking about complex and captious matters.
Allah knows best.
You can search for fatwa through many choices