How can I override the markup of a view I printed in a template file?
You can enable Twig debugging for your site in sites/default/services.yml

    parameters:
      twig.config:
        debug: true 


Clear cache
Inspect element in the browser and you will see the path to the template
Copy the template to your custom theme's templates/ directory and adjust the markup