Most of the time, the green dot isn’t anything to worry about, but if you suspect you’re being spied on, you should act fast.
If you see the green dot, it’s quite easy to find out which app has triggered it.
Swipe down from the top of the screen if you see the green dot, and you’ll see either a microphone or a camera, to show which sensor is being used.
Tap on the icon, and you’ll see which app is using it.
From that screen, you can revoke the app’s permissions to use the microphone or camera (although if an app is using either unexpectedly, it may be better to uninstall altogether).
You can also see a clear record of which apps have been using which sensor, minute by minute.
From this screen, tap on the app which has been using your microphone or camera, and you can see a full list of the sensors the app has been using.