Step 1: Copy the target layout from plugins/the-post-grid/templates/layouts/layout_no.php
If you use the pro plugin also then copy the layout from plugins/the-post-grid-pro/lib/templates/layouts/layout_no.php
Step 2: Paste it in the following directory themes/(child-theme OR main-theme)/the-post-grid/layouts/layout_no.php
Step 3: Then modify the template
Step 1: Copy the target layout from plugins/the-post-grid/templates/elementor/layout_no.php
If you use the pro plugin also then copy the layout from plugins/the-post-grid-pro/templates/elementor/layout_no.php
Step 2: Paste it in the following directory themes/(child-theme OR main-theme)/the-post-grid/elementor/layout_no.php
Step 3: Then modify the template
Step 1: Copy the target layout from plugins/the-post-grid/templates/gutenberg/layout_no.php
If you use the pro plugin also then copy the layout from plugins/the-post-grid-pro/templates/gutenberg/layout_no.php
Step 2: Paste it in the following directory themes/(child-theme OR main-theme)/the-post-grid/gutenberg/layout_no.php
Step 3: Then modify the template
If you face any problems you can download the below zip file and use it for your theme or child theme. Just download it and paste it into your main theme or child theme then just overwrite the layouts.