Did you solicitor not explain this to you?
Legally, the lender can repossess the home in 3 months and you have to leave. If you don't leave, they can ask the Sheriff to evict you.
You must prepare for that.
In practice, many repossession orders don't get to that. The borrower finds some money and starts repaying the lender and the lender leaves them there, but the order remains valid so they can evict you if it suits them.
If you go to the lender and agree to sell your home, most will allow you to do this so that it is does not have the stigma of a repossessed house. They will probably appoint the estate agent to sell it.
You should talk to your lender directly.