A search for
γ
H
production is performed with data from the CMS experiment at the LHC corresponding to an integrated luminosity of
138
fb
−
1
at a proton-proton center-of-mass collision energy of
13
TeV
. The analysis focuses on the topology of a boosted Higgs boson recoiling against a high-energy photon. The final states of
H
→
b
b
¯
and
H
→
4
ℓ
are analyzed. This study examines effective
H
Z
γ
and
H
γ
γ
anomalous couplings within the context of an effective field theory. In this approach, the production cross section is constrained to be
σ
γ
H
<
16.4
fb
at 95% confidence level (CL). Simultaneous constraints on four anomalous couplings involving
H
Z
γ
and
H
γ
γ
are provided. Additionally, the production rate for
H
→
4
ℓ
is examined to assess potential enhancements in the Yukawa couplings between light quarks and the Higgs boson. Assuming the standard model values for the Yukawa couplings of the bottom and top quarks, the following simultaneous constraints are obtained:
κ
u
=
(
0.0
±
1.5
)
×
10
3
,
κ
d
=
(
0.0
−
6.8
+
6.7
)
×
10
2
,
κ
s
=
0
−
32
+
30
, and
κ
c
=
0.0
−
2.8
+
2.3
. This rules out the hypothesis that up- or down-type quarks in the first or second generation have the same Yukawa couplings as those in the third generation, with a CL greater than 95%.