Thanks so much for all your help in investigating this - I concur with your findings which have given me a good direction for further examination. I suspect this will be linked to a template package I'd installed in Joomla 3 (fontaine_j3) and not removed all unsupported elements in upgrading to Joomla 4.