Any time an app uses your mic or camera, you’ll see the privacy indicator in the status bar.

When you see the privacy indicator:


To block that app from using it:

To quickly block and unblock access to your mic for all apps:

Change it to Blocked.
None of the apps on your phone can use it.

You can block access for an app currently using the camera, but can’t temporarily block all apps from using the camera.