We have our mobile website as a subfolder. Is this the correct way to use canonical tags
main website <link rel="canonical" href="https://www.example.com/" />
mobile subfolder mobile <link rel="canonical" href="https://www.example.com/mobile" />
Our primary website https://www.example.com and our mobile website https://www.example.com/mobile is a subfolder.
Is this the correct way to use "canonical" tags
main website <link rel="canonical" href="https://www.example.com/" />
mobile subfolder mobile <link rel="canonical" href="https://www.example.com/mobile" />