X-Ray mode not working, version 2.91?

I’m currently creating a model for a game and am in the process of weight painting it, however when I use the X-Ray mode like I would’ve in previous version, it doesn’t function as it did before. In old versions, I could weight paint through the mesh when it was selected, but after selecting X-Ray mode, the mesh acts exactly like it would even before selecting it. The only thing that changes is, instead of darker colors, it saturates everything and takes away shading, but I still can’t paint through it.

Strange. Could you post a screenshot of it?