Besides answers to the above 2 questions...
IF it’s foam floating at the top, you have too much organic stuff breaking down, i.e. dying plants or excessive food. (The foam itself is not harmful but an indicator that something might be amiss.) Do an extra water change/vacuum and feed your fish less from now on. If you have plants, be sure to remove dying/dead leaves.