In lab H2O2 is prepared by
BaO2+H2SO4−−−>BaSO4+H2O2. This is laboratory method for preparation of H2O2. But the BaSO4 formed is a thick precipitate and deposits on top of BaO2 and prevents further reaction with it. Therefore H2CO3 or H3PO4 are used instead of H2SO4.