Customizing existing theme is not ideal, all the modifications will be erased once the plugin is updated. We recommend you to use AMP Theme Framework which will allow you to create a new theme for AMP.
For reference please follow this tutorial: https://ampforwp.com/tutorials/article/what-is-amp-theme-framework-and-how-to-use-it/
So my new theme will not be erased when the plugin is updated, am I right?
Can i make classic queries in framework theme files, something like down below?
$posts = get_posts( array(
'numberposts' => 3,
'category' => $cat_id,
'suppress_filters' => true
) );
Yes, Plugin updates will not erase your new theme if you use AMP Theme Framework.
Everything is ok, I’ve created custom theme with my own queries. Thanks