The most common mistake is constantly touching it with your tongue - that only makes it worse and stretches out the healing time. Also avoid very acidic or salty foods during this period, because they just irritate it more.
As for treatment, regular mouthwash doesn't really do much. What actually makes a difference is using something with anti-inflammatory or healing properties - there are gels and pastes specifically for canker sores that create a protective barrier. Then it becomes way less painful to eat. Usually 7 to 14 days is the normal healing time, depending on how big the sore is, but with the right care the pain decreases much faster.
If after two weeks the canker sore hasn't improved or it starts swelling a lot, then it's worth seeing a dentist. But that's rare - most of the time it's just a matter of waiting and protecting it properly 😊