Let's say we have a current loop of radius $a$ in $x-y$ plane. Let's consider the flux ($\phi=BA$) through the loop, and the flux through the rest of the plane, outside the loop. (to clarify, if the loop covers the area A, here I'm referring to the rest of the $x-y$ plane, so the entirety of $x-y$ plane from $-\infty$ to $+\infty$ - A).
I think the two fluxes should have the same magnitude (different sign):
All B field have to form a loop because there is no magnetic monopole, hence all the B field going through the loop has to come back down , through somewhere outside the loop.
Also using $\nabla \cdot \textbf{B}=0$ and Gauss's. Consider a cylinder with infinite dimensions, with its upper surface in the $x-y$ plane containing the loop, and all the other surfaces will be at infinity. Hence, the only contribution to the surface integral would be from the surface containing the loop, which has to be zero.
However, I believe my conclusion has to be wrong; using this conclusion one can calculate the self inductance of a single wire loop independent of its thickness/height, by calculating the flux through the rest of the plane, which we can do if we know the current and the radius of the loop. But the self inductance and the B field through the loop has to depend on the thickness of the loop(by Ampere's and as other sources suggest).