The first thing to do if you are concerned that your microphone has been tapped is to check which apps have permission to use your microphone.
You can find this information in the settings app on your device. If you see any suspicious-looking apps that you didn’t install yourself, immediately remove them.