This example uses OpenLayers v10.9.0. The latest is v.
Edit

#### Vector tiles in EPSG:4326

vectortiles 6 epsg4326 2 mapboxstyle 2 ol-mapbox-style 3 maptiler 26 grid 8

#####

Example showing vector tiles in EPSG:4326 (styled using ol-mapbox-style)

Example showing vector tiles in EPSG:4326 (styled using `ol-mapbox-style`) loaded from maptiler.com. Note: Make sure to get your own API key at https://www.maptiler.com/cloud/ when using this example. No map will be visible when the API key has expired.

##### main.js

    import {applyBackground, applyStyle} from 'ol-mapbox-style';
    import Map from 'ol/Map.js';
    import View from 'ol/View.js';
    import VectorTileLayer from 'ol/layer/VectorTile.js';
    import VectorTileSource from 'ol/source/VectorTile.js';
    import {createXYZ} from 'ol/tilegrid.js';

    const key = 'Get your own API key at https://www.maptiler.com/cloud/';
    const url = 'https://api.maptiler.com/maps/basic-4326/style.json?key=' + key;

    // Match the server resolutions
    const tileGrid = createXYZ({
      extent: [-180, -90, 180, 90],
      tileSize: 512,
      maxResolution: 180 / 512,
      maxZoom: 13,
    });

    const layer = new VectorTileLayer({
      declutter: true,
      source: new VectorTileSource({
        projection: 'EPSG:4326',
        tileGrid: tileGrid,
      }),
    });
    applyStyle(layer, url, {resolutions: tileGrid.getResolutions()});
    applyBackground(layer, url);

    const map = new Map({
      target: 'map',
      layers: [layer],
      view: new View({
        projection: 'EPSG:4326',
        zoom: 0,
        center: [0, 30],
      }),
    });

##### index.html

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8">
        <title>Vector tiles in EPSG:4326</title>
        <link rel="stylesheet" href="node_modules/ol/ol.css">
        <style>
          .map {
            width: 100%;
            height: 400px;
          }
        </style>
      </head>
      <body>
        <div id="map" class="map" style="background:none;"></div>

        <script type="module" src="main.js"></script>
      </body>
    </html>

##### package.json

    {
      "name": "vector-tiles-4326",
      "dependencies": {
        "ol": "10.9.0",
        "ol-mapbox-style": "^13.4.1"
      },
      "devDependencies": {
        "vite": "^3.2.3"
      },
      "scripts": {
        "start": "vite",
        "build": "vite build"
      }
    }