We normally suggest you start planning a remortgage around six months before the date you plan to switch your mortgage product.
It doesn't often take such a long time to get a deal in place, but it means you have a buffer period where you can assess different products and lenders and don't feel any pressure to rush into an agreement on a high-standard variable rate.
The six months gives you sufficient time to collate all the required paperwork and pass any checks.