هَذِهِ مَسَاجِدُ — These are mosques.
هَذِهِ: demonstrative, indeclinable, a subject in the nominative position.
مَسَاجِدُ: predicate, nominative, with visible ḍamma. It is on an ultimate broken-plural pattern, so it has no tanwīn.
Being a diptote does not remove the nominative case; it affects its ending and tanwīn behavior.