This plugin will help you to upload webp format image in WordPress media library regardless of the theme. That is, it works with every theme.
Secure your post by removing unnecessary HTML tags from post, page and custom post type content before inserting it to your WordPress database.