You can select what monitor you want to record on in record, or set it to active window, if the active Window at the time is a messaging app for example when you press record, and desktop recording is enabled it may record that.
The settings are directly in the record & stream section.