Purchase of goods and services in the UK after Brexit

What happens to your two-year guarantee as ensured by EU law? If you buy a product from a British retailer now, what happens if you discover a defect after the exit date? Who can you go to for help and guidance?