Contact form Linked with footer Newsletter

I have a contact form in a pop-up on the homepage and when I try to submit the form I get a response at both places first in the pop-up and second in the footer newsletter. I am unable to understand why this is happening. The newsletter in the footer has a different id; in fact, it is a distinct section, but still, this is happening.

Ensure that each form is uniquely targeted by using specific ID or class selectors for precise handling.