The main problem is with insecticides and/or snail killing chemicals which kill invertebrates such as shrimps and snails. This is a problem in the EU as legislation was passed several years ago that all plants imported from places where apple snails are endemic must be treated with snail killers. This followed the discovery of one species of apple snail in a river in Spain, resulting in the import, breeding and spreading of all species of apple snail within the EU being banned, and the treatment of plants was to stop any apple snails sneaking in that way. The ban on apple snails has been lifted in the UK since we left the EU but anyone in the UK and EU who keeps invertebrates would be advised to buy plants from EU growers.
However, it is not unknown for well meaning store staff to use terrestrial insecticides/snail killers on their aquatic plants and while products made for aquarium use usually kill inverts and not fish, those products intended for garden use are likely to harm if not kill fish.