The human gut microbiota is composed of many viruses, bacteria, and fungi. Escherichia coli representatives are facultative anaerobic bacteria in the colon that play a crucial role in the metabolism of lactose, vitamin synthesis, and immune system modulation. E. coli forms a biofilm on the epithelial cell surface of the intestine that can be modified by diet compounds, i.e., gluten, xylitol, lactose, and probiotics. In the present study, the impact of probiotic-derived Lactobacillus rhamnosus GG strain on non-pathogenic E. coli biofilm was examined. The mono- and multispecies biofilm was also treated with gluten, xylitol, and lactose. We used 96-well plates to obtain biofilm growth. Biofilm was stained using crystal violet. To evaluate the type of interaction in mono- and multispecies biofilm, a new formula was introduced: biofilm interaction ratio index (BIRI). To describe the impact of nutrients on biofilm formation, the biofilm formation impact ratio (BFIR) was calculated. The biofilms formed by both examined species are stronger than in monocultures. All the BIRI values were above 3.0. It was found that the monospecies biofilm of L. rhamnosus is strongly inhibited by gluten (84.5%) and the monospecies biofilm of E. coli by xylitol (85.5%). The mixed biofilm is inhibited by lactose (78.8%) and gluten (90.6%). The relations between bacteria in the mixed biofilm led to changes in biofilm formation by E. coli and L. rhamnosus GG. Probiotics might be helpful in rebuilding the gut microbiota after broad spectrum antibiotic therapy, but only if gluten and lactose are excluded from diet.