Doing the exact opposite might help — probiotics feed harmful bacteria as well and a different strategy would be to simply try to keep your microbiome as basic and unintrusive as possible, allowing the gut to calm and heal.
It’s easier said than done; recommend looking into natural antibiotics (eg cooked white button mushrooms), indigestible fibre to ensure regular movements, which more than anything lowers endotoxin load (raw carrot salad), carbs from sugars instead of starch, which get absorbed more quickly and won’t be very “prebiotic” (eg ripe oranges, honey) and nutrient dense foods to meet metrics (organ meats and cheeses).