The EU has provisionally agreed all new portable electronic devices must, by autumn 2024, use a USB Type-C charger, a move it says will benefit consumers.
Critics say it will stifle innovation.
Under the current post-Brexit arrangements, the regulation would apply to Northern Ireland, according to EU and UK officials.
According to the a December 2021 parliamentary report, the "new requirements may also apply to devices sold in Northern Ireland under the terms of the Northern Ireland protocol in the Brexit agreement, potentially triggering divergence of product standards with the rest of the UK".
The treaty works by keeping Northern Ireland inside the EU's single market for goods, while the rest of the UK is outside it.
A row between the UK and EU about how to reform the Northern Ireland protocol remains unresolved.
A UK government spokesperson said "we are not currently considering replicating this requirement".
Apple products such as iPhones and iPads will have to conform to the new regulation, as will, eventually laptop computers. Existing devices will be exempt.
The agreement will be brought before the European Parliament and the Council of Ministers after their summer recesses, where it can be formally approved and then published.
Apple told the BBC it had no new comment to make.
It argued against the proposal, when it was first introduced, in September 2021, with a representative telling BBC News: "Strict regulation mandating just one type of connector stifles innovation rather than encouraging it, which in turn will harm consumers in Europe and around the world".
Apple is the biggest manufacturer to use a custom charging port that is exclusive to some of its products - its iPhone series uses an Apple-made Lightning connector.
The new rule will cover a range of "small and medium-sized portable electronics", according the EU, including:
* mobile phones
* headphones and headsets
* handheld videogame consoles
* portable speakers
Any of these charged using a wired cable will have to have a USB Type-C port, regardless of who makes the devices.
Laptops will also have to abide by the ruling but manufacturers will have 40 months after it comes into effect to make changes.
The agreement also includes a plan to let customers choose whether or not they want a charging cable with their new electronics.
"This law is a part of a broader EU effort to make products in the EU more sustainable, to reduce electronic waste, and make consumers' lives easier," the EU said in its announcement.
It would save consumers "up to €250m [£213m] a year on unnecessary charger purchases" and cut 11,000 tonnes of waste per year, the EU added.