Welcome to the Shopify community!
and Thanks for your Good question.
Please check your template it's older version also create a new one by default show default code,
So I will check and provide a solution here.
This is an accepted solution.
can you please download fresh debut theme then copy collection list code and past that's it
Thanks for update and support.