Add viewport settings to snippet.