The preview appears to be eating the first and last dollarsigns in double dollarsigned expressions hence causing displaystyle expressions to be ignored, e.g. see here
Example: The following equation is enclosed as
$$…$$ and therefore centered in the actual answer.
But in preview it is left-justified.