Star Trek has never been consistent with its technology nor how the crew used that technology. In an episode of TNG, the audience learns that the windows were made of transparent aluminum. Yet, when the primary hull of the Enterprise
crashed into planetary surface, the windows shattered like they were made of glass. In that same movie, the crew, once they knew their shields had been compromised, didn't change the shield frequency rotation, like Tuvok did in one episode of Voyager.