Been down this rabbit hole myself when I was planning my van build and briefly considered doing something similar for my mum's place.
The short answer is: tread very carefully.
The main concern everyone glosses over is islanding — if the grid goes down for maintenance and your inverter is still pushing power back into what the engineers assume is a dead line, someone could get seriously hurt. Grid-tied inverters have anti-islanding protection built in specifically for this reason, but a standard off-grid unit absolutely does not.
In the UK, you're also looking at G98/G99 compliance if you're exporting anything to the grid, which means notifying your DNO and using approved equipment. Most off-grid inverters won't qualify.
The safer route I've seen people take is keeping the systems completely isolated — using a proper transfer switch (Victron make decent automatic ones) so the off-grid system only powers your loads when the grid is absent, never simultaneously. No parallel connection, no grey areas.
There are hybrid inverter/chargers like the Victron MultiPlus range that are actually designed to do exactly what you're describing properly, with the right protections baked in. Costs more upfront but you're not gambling with safety or breaking regulations.
What's the actual goal here — backup power, reducing your bills, or something else? That changes the answer quite a bit.
Would love to hear what others have done, particularly anyone who's had conversations with their DNO about it. My experience is they vary wildly in how helpful they are.