There is lag when running on a smartphone

There is lag when running on a smartphone.

hello. Nice to meet you.
I created a WEB with ‘p5’.

  1. When accessing through the smartphone’s ‘Internet’ or ‘Chrome’ URL
  2. When entering ‘Webpage’ through ‘App’ on smartphone
  3. When entering a PC URL

1 to 3. All work fine.
However, when accessing from a smartphone, there is a ‘slight lag’.
Is it because ‘p5’ is heavy? Otherwise, is there any solution?