Browser is under Remote Control

I keep having the same problem. A little icon appears in the left-hand side of the menu bar, and the menu bar turns red. When I click on the icon it says, “Browser is under remote control (reason: DevTools).” I fixed it once, but I am not sure how. I looked in DevTools, but I am not sure if I fixed it there. I really didn’t do anything. Then I went to settings. I am not sure how I fixed it, though, because I was not looking at the menu bar while I was messing with some things. When I looked up, the problem was solved. But now it has happened again, and I have no idea why. I was not in the settings, or DevTools, or anywhere else on the Mozilla site, so I believe something else must have caused it to turn on. But I don’t know how I did it. Can anybody help?