Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement on Form S-1 filed pursuant to Rule 462(b) of the Securities Act of 1933 of the reference to our firm under the caption “Experts” and to the incorporation by reference of our report dated December 23, 2020, with respect to the consolidated financial statements of Leslie’s, Inc. included in the Registration Statement (Form S-1 No. 333-259475) and related Prospectus of Leslie’s, Inc. for the registration of its common stock.

/s/ Ernst & Young LLP

Phoenix, Arizona

September 15, 2021