Let $p$ be a prime, and let $E/\mathbb{Q}$ and $F/\mathbb{Q}$ be elliptic curves. Suppose the modular forms $f$ attached to $E$ and $g$ attached to $F$ have $q$-expansions that agree modulo $p$ in their coefficients up to the $n$-th term for all $n \le B$, where $B$ is the Sturm bound.
Does it then follow that the coefficients of $f$ and $g$ agree modulo $p$ for all $n$? I believe this is certainly known when $p \nmid N$ ($N$ is a product of conductors of $E$ and $F$); Proposition $4.2$ of https://wstein.org/papers/visibility_of_sha/jnt_version.pdf
Does the same property also hold when $p \mid N$? If there is a reference that proves this explicitly, I would be grateful.