There is nothing condescending about following the Requesting Help guidelines.
The Introduction to Hugo Templating is required reading and a basic starting point.
With the above said try:
{{ with .OutputFormats.Get "AMP" }}
<p>This should only appear on AMP Pages</p>
{{ else }}
<p> NOT AMP</p>
{{ end }}