Importing gltf character model messes bones up and stretches character

I got a rigged blender character online and when I export from blender as gltf and import to Unreal the bones are all in the same place and the character is stretched.

If I export fbx from blender the bones work fine in Unreal but there are no textures so I’d prefer gltf.

Any ideas on how to fix?