[subject] + 不是 + [verb phrase] + 吗?
不是 + [clause] + 吗?
不是…吗 wraps a statement the speaker takes to be true. It reminds the listener of it, often because what is happening now doesn't fit.
The expected answer is yes. The tone ranges from a mild reminder to surprise to reproach, depending on what comes next.
When the thing has already happened, 了 goes before 吗.
Put 不是 at the start when the point of the question is who or what.
This frame is built on 是, and 是 is negated with 不 in every time frame. Even about the past, 没 doesn't replace it.