The hot intracluster/intragroup medium (ICM/IGM) and a high galaxy density can lead to perturbations of the galactic interstellar medium (ISM) due to ram pressure and/or tidal interaction effects. In radio polarimetry observations, both phenomena may manifest similar features. X-ray data can help to determine the real origin of the perturbation. We analyse the distribution and physical properties of the hot gas in the Virgo cluster spiral galaxies NGC 4254 and NGC 4569, which indicate that the cluster environment has had a significant influence on their properties. By performing both spatial and spectral analyses of X-ray data, we try to distinguish between two major phenomena: tidal and ram pressure interactions. We compare our findings with the case of NGC 2276, in which a shock was reported, by analysing XMM-Newton X-ray data for this galaxy. We use archival XMM-Newton observations of NGC 4254, NGC 4569, and NGC 2276. Maps of the soft diffuse emission in the energy band 0.2 - 1 keV are obtained. For the three galaxies, especially at the position of magnetic field enhancements we perform a spectral analysis to derive gas temperatures and thus to look for shock signatures. A shock is a signature of ram pressure resulting from supersonic velocities; weak tidal interactions are not expected to influence the temperature of the ionized gas. In NGC 4254, we do not observe any temperature increase. This suggests tidal interactions rather than ram pressure stripping. In NGC 4569 the radio polarized ridge shows a higher temperature, which may indicate ram-pressure effects. For NGC 2276, we do not find clear indications of a shock. The main driver of the observed distortions is most likely tidal interaction. Determining gas temperatures via sensitive X-ray observations seems to be a good method for distinguishing between ram pressure and tidal interaction effects acting upon a galaxy.