I found a simple solution that works in Inscape 1.1.2
To make sure it works, you can check that the transform attribute goes away from the XML Editor
Depending on the transformation, you may need to apply more than one change:
select the element in question
Path > Object to Path (clears rotations)
Path > Simplify (clears translations and size changes)