There are several fluorescent tubes. They are different from one another.
It is certain that the quantity of mercury in each fluorescent tube differs.
If we want to check the quantity of mercury contained in each of these fluorescent tubes, is it possible to say:
"We must check the quantity of mercury contained in these fluorescent tubes."?
or
"We must check the quantities of mercury contained in these fluorescent tubes."?
#1 would suggest you were checking the total quantity in all the tubes.
#2 could suggest that each tube contained more than one quantity (perhaps in different parts of the tube).
I would write: We must check the quantity of mercury contained in each of these fluorescent tubes.
Your earlier sentence , "It is certain that the quantity of mercury in each fluorescent tube differ" has a singular subject 'quantity' with a plural verb 'differ'. My solution would be: It is certain that each fluorescent tube contains a different quantity of mercury.
"The quantity of mercury is not strained
It droppeth as the gentle rain ..."