This model for example uses transparency, but it's gone in the viewer and also in glTF downloads:
https://polyhaven.com/a/nettle_plant

Expected:

I think to keep the appearance for the 3D model, the diffuse map would need to be a PNG with the alpha map as alpha channel.
Related to