There are many ways to record yourself teaching. You can use:

QuickTime Player (for macOS)

Microsoft Stream (make sure you are using Edge or Chrome)

If you are using Microsoft Stream, you can use these buttons to choose whether you want to record yourself, your screen, or both: