What visa are you in the UK on at the moment? When does that expire?
If your aim is British citizenship, be aware that that has different rules to the immigration rules.
At the moment, an application for BC is allowed with an overstay of no more than 28 days in their immigration history, but they could change that. When the UK tighted the Good Character requirement for British citizenship 20 months ago, it applied to all BC applications granted from that date, regardless of how long UKVI had held their application, or whether they would have been granted BC under the rules when they committed the offence. The same with the DCPR requirement for BC for those using EU rules, it applied from that date, regardless of when they achieved the PR or when they sent their BC application to UKVI.