Exhibit 23.1
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the incorporation by reference in Registration Statements on Form S-8 (No. 333-141829, 333-185624, and 333-284686) of Lake Shore Bancorp, Inc. of our report dated March 14, 2025, relating to the consolidated financial statements appearing in this Annual Report on Form 10-K of Lake Shore Bancorp, Inc. for the year ended December 31, 2024.
/s/ Yount, Hyde & Barbour, P.C.
Winchester, Virginia
March 14, 2025